76 explicit MT19937(
unsigned long);
87 void seed_(
unsigned long);
105 static const unsigned int N;
106 static const unsigned int M;
112 std::vector<unsigned long>
mt;
126 return I2DFactor_ * genrand_int32();
static const double I2DFactor_
int to double factor
Definition: mt19937.h:110
static const unsigned long LOWER_MASK
Definition: mt19937.h:109
static const unsigned long MATRIX_A
Definition: mt19937.h:107
Mersenne Twister MT19937.
Definition: mt19937.h:72
double drand_()
implements drawing a single [0,1) number for RandomGen
Definition: mt19937.h:118
static const unsigned int M
Definition: mt19937.h:106
std::vector< unsigned long > mt
Definition: mt19937.h:112
RngPtr clone(unsigned long s)
clone a random number generator of same type initialized with given seed
Definition: mt19937.h:80
static const unsigned int N
Definition: mt19937.h:105
double genrand_real2()
Definition: mt19937.h:124
lockPTR< RandomGen > RngPtr
Common lock-pointer type for RNG.
Definition: randomgen.h:208
unsigned long genrand_int32()
Definition: mt19937.cpp:94
int mti
Definition: mt19937.h:113
void init_genrand(unsigned long)
Definition: mt19937.cpp:79
Abstract base class for all random generator objects.
Definition: randomgen.h:238
~MT19937()
Definition: mt19937.h:78
MT19937(unsigned long)
Create generator with given seed.
Definition: mt19937.cpp:67
static const unsigned long UPPER_MASK
Definition: mt19937.h:108
void seed_(unsigned long)
implements seeding for RandomGen
Definition: mt19937.cpp:74