
Math/Random/mt19937ar.pir - the Mersenne Twisted pseudorandom number generator

This is a PIR version of the C-program for MT19937.
The MT19937 algorithm was created by Makoto Matsumoto and Takuji Nishimura.
See http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html and http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html.
init_genrand (seed)initializes the state vector by using one "seed", which may be zero.
init_by_array (init_key)initializes the state vector by using an array.
After initialization, the following type of pseudorandom numbers are available.
genrand_int32 ()generates a random number on [0,0xffffffff]-interval
genrand_int31 ()generates a random number on [0,0x7fffffff]-interval
genrand_real1 ()generates a random number on [0,1]-real-interval
genrand_real2 ()generates a random number on [0,1)-real-interval
genrand_real3 ()generates a random number on (0,1)-real-interval
genrand_res53 ()generates a random number on [0,1) with 53-bit resolution

Francois Perrad