[computer-go] C++ random numbers

Chris Fant chrisfant at gmail.com
Fri Aug 11 11:30:35 PDT 2006


Nice.  Nothing more satisfying that generating some really, really
random numbers.


On 8/11/06, Tom Cooper <t.cooper at firenet.uk.net> wrote:
> Just a warning though, I believe the early editions
> of Numerical Recipes contained some dodgy pseudo-random
> number generators.
>
> When I was feeling particularly paranoid, I once used
> the Mersienne twister XORed with a repeating cycle of
> a few Megs of physical random noise (I guess Johnson noise)
> that I found on the web.
>
> At 02:01 09/08/2006, you wrote:
>
> >If you really want a decent generator, look in Knuth.
> >I do MC in physics, where the quality of the generator
> >is paramount, and you can get bad results with bad
> >generators. I have had good results with the "shuffle"
> >technique, which requires 2 random generations to
> >get one random number.
> >
> >There is also a good discussion in the Numerical
> >Recipes books, with code for several generators,
> >including a very good one that requires 3 steps:
> >high order, low order, and shuffle.
> >
> >Cheers,
> >David
>
>
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
>


More information about the computer-go mailing list