Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How good is Rand()?
Message
From
23/01/2008 09:21:02
 
 
To
23/01/2008 08:53:30
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01284415
Message ID:
01284432
Views:
9
>Hi all!
>
>Looking through my copy of "Numerical Recipes" I read the following:
>
>"Never use a generator based on a linear congruential generator (LCG) or a multiplicative linear congruential generator (MLCG)"
>
>"Never use a generator with a period less 2**64 or any generator whose period is undisclosed"
>
>I use the rand() function to generate control groups (select 10.000 random customers from 100.000 ...) and reading the above gave me a stomach ache.
>
>Does anyone know more about rand() in VFP? I saw one MSDN post from Tamara that said "it seemed pretty good" But that leaves a lot of room open. Thanks in advance for your collective wisdom!

For day to day use of simple random sampling for very finite numbers (get 500 people for mailing) and so on I think it is fine. I would not do any Monte-Carlo-Studies based on it and not base a gambling site on it. I'ld also hesitate to compare very large samplings to artifical compare groups.

HTH

thomas

BTW: what line of work are you here in "my" town <g>?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform