[computer-go] C++ random numbers
Chris Fant
chrisfant at gmail.com
Tue Aug 8 15:23:50 PDT 2006
Assuming you have a quality 32-bit generator, you can do something like:
uint64 r = (r32( )<<32) | r32( );
On 8/8/06, Peter Drake <drake at lclark.edu> wrote:
>
> Okay, next question: how do I generate a random 64-bit unsigned integer?
>
> Thanks in advance for any help,
>
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/
>
>
>
>
>
> _______________________________________________
> 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