Re: random number generator

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, 08 Jul 2004 09:12:35 -0700, Jules Davy
<guest at RapidEuphoria.com> wrote:

>I'm writing a program to test roulette systems (million+ "spins") and 
>was wondering whether eu's rand() function is adequate for this or should I use
>
>a more advanced RNG such as the mersenne twister in the archive?
Erm,
I can safely say that I learnt almost everything I know about roulette
from watching James Bond movies. Not quite sure how you expect anyone
to guess whether something is adequate for a program which has not yet
been written. (sorry if that sounds a bit harsh, it wasn't meant to
be) It may be that rand() is ok, afaik, all reports so far indicate it
would be fine for a million+ ints in the range 0..33[?].

You may as well try that mersenne thing and/or the new getRandInt() in
win32lib, and/or any other you can find, in the fullness of time, but
it sounds like you should go with rand() for now.

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu