Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do Factorials in VFP with Recursion
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00335196
Message ID:
00336137
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform