Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do Factorials in VFP with Recursion
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00335196
Message ID:
00336137
Vues:
17
Joe,

With large enough sample sets it should average out. If you wanted to be absolutely sure you were using the same set of numbers you can seed the generator with the same large prime number before testing each variant of the code. This will cause the same sequence of random numbers to be generated. But you might want to do a Chi-Square test of the sequence generated by your seed to make sure it produces a good pseudo-random number list.

>Do you believe using random numbers is a good method of testing this?
>
>One method may have been using greater numbers and one method using lesser numbers.
>
>If you want to randomize the test numbers, stick them in an array or something and run the test with that array. But use the same number set to test the two (or more) methods.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform