32 #define MT_IB (MT_LEN - MT_IA)
33 #define UPPER_MASK 0x80000000
34 #define LOWER_MASK 0x7FFFFFFF
35 #define MATRIX_A 0x9908B0DF
39 #define TWIST(b,i,j) ((b)[i] & UPPER_MASK) | ((b)[j] & LOWER_MASK)
41 #define MAGIC(s) (((s)&1)*MATRIX_A)
94 static unsigned long random();
static void deinit()
Deinitialize the class.
static double nextDouble()
Returns random double number.
static double gaussian()
Returns variate of the normal distribution.
static void init()
Initialize the class.
Mersenne Twister random number generator.
static unsigned long random()
Returns random integer number.