> In addition, xor_shift is better than builtin rand() and faster and > much smaller than MT.
I don't know that much about random numbers, so excuse my ignorance. But a bit of googling got me to the Park - Miller Minimal Standard random number generator http://www.firstpr.com.au/dsp/rand31/p1192-park.pdf >From what I read, it should be quite sufficient for go programs. It is dead simple and fast: long int pmrand() { const long int a=16807; const long int m= ( 1 << 31 ) -1; pmrandseed = ( pmrandseed * a ) % m ; return pmrandseed; } /* pmrand */ Should I worry about this not being good enough? - Heikki -- Heikki Levanto "In Murphy We Turst" heikki (at) lsd (dot) dk _______________________________________________ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/