cMersenneTwister Class Reference

Wraps the Mersenne Twister RNG by Makoto Matsumoto and Takuji Nishimura. More...

#include <cmersennetwister.h>

Inheritance diagram for cMersenneTwister:
cRNG cObject

List of all members.

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 ()

Detailed Description

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


Member Function Documentation

virtual void cMersenneTwister::initialize ( int  seedSet,
int  rngId,
int  numRngs,
int  parsimProcId,
int  parsimNumPartitions,
cConfiguration cfg 
) [virtual]

Sets up the RNG.

Implements cRNG.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:28 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3