#include <eosim/dist/mt19937.hpp>
Inheritance diagram for eosim::dist::Mt19937:
Public Member Functions | |
Mt19937 () | |
The constructor of Mt19937. | |
~Mt19937 () | |
The destructor of Mt19937. | |
void | setSeed (const unsigned long oneSeed) |
This operation assign seed to the generator’s seed. | |
double | nextDouble () |
This operation returns double between 0 and 1. | |
unsigned long | nextLong () |
This operation returns unsigned long generated by the generator. | |
Static Public Attributes | |
static const int | N = 624 |
static const int | SAVE = N + 1 |
Protected Member Functions | |
void | initialize (const unsigned long oneSeed) |
void | reload () |
unsigned long | hiBit (const unsigned long &u) const |
unsigned long | loBit (const unsigned long &u) const |
unsigned long | loBits (const unsigned long &u) const |
unsigned long | mixBits (const unsigned long &u, const unsigned long &v) const |
unsigned long | twist (const unsigned long &m, const unsigned long &s0, const unsigned long &s1) const |