Wraps the Mersenne Twister RNG by Makoto Matsumoto and Takuji Nishimura. More...
#include <cmersennetwister.h>
Public Member Functions | |
virtual void | initialize (int seedSet, int rngId, int numRngs, int parsimProcId, int parsimNumPartitions, cConfiguration *cfg) |
virtual void | selfTest () |
virtual unsigned long | intRand () |
virtual unsigned long | intRandMax () |
virtual unsigned long | intRand (unsigned long n) |
virtual double | doubleRand () |
virtual double | doubleRandNonz () |
virtual double | doubleRandIncl1 () |
Wraps the Mersenne Twister RNG by Makoto Matsumoto and Takuji Nishimura.
Cycle length is 2^19937-1, and 623-dimensional equidistribution property is assured.
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ewhat-is-mt.html
Actual code used is MersenneTwister.h from Richard J. Wagner, v1.0, 15 May 2003, [email protected].
http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html
virtual void cMersenneTwister::initialize | ( | int | seedSet, | |
int | rngId, | |||
int | numRngs, | |||
int | parsimProcId, | |||
int | parsimNumPartitions, | |||
cConfiguration * | cfg | |||
) | [virtual] |
Sets up the RNG.
Implements cRNG.