eosim::dist::Mt19937 Class Reference
[Distributions]

#include <eosim/dist/mt19937.hpp>

Inheritance diagram for eosim::dist::Mt19937:

Inheritance graph
[legend]
Collaboration diagram for eosim::dist::Mt19937:

Collaboration graph
[legend]
List of all members.

Detailed Description

Mersenne Twister Random Number Generator.

Author:
Sebastián Alaggia
Version:
1.0.1
Date:
2005
This is an implementation of a Mersenne Twister random number generator. The GenType label for this generator is MT19937. It is based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus; and adapted from Richard J. Wagner (rjwagner@writeme.com).


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


Generated on Tue Oct 14 16:48:55 2008 for EOSimulator by  doxygen 1.5.2