npstat::MersenneTwister Class Reference
Inheritance diagram for npstat::MersenneTwister:
Detailed DescriptionGenerator of pseudo-random numbers (with period 2^19937-1). Based on the interface written by Richard J. Wagner to the original Mersenne Twister. Reference: M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30. Constructor & Destructor Documentation◆ MersenneTwister()
The default constructor will read /dev/urandom to get the seed Member Function Documentation◆ dim()
Dimensionality of the generated vectors (or points). It is expected that "dim()" will always be 1 for pseudo-random (as opposed to quasi-random) generators. Implements npstat::AbsRandomGenerator. ◆ operator()()
Standard 1-d generator function. It should generate a run-time error for essentially multivariate generators whose dimensionality is larger than 1. Implements npstat::AbsRandomGenerator. The documentation for this class was generated from the following file: Generated by 1.9.1 |