wfmath  1.0.3
A math library for the Worldforge system.
WFMath::MTRand Class Reference
Collaboration diagram for WFMath::MTRand:

Public Types

typedef uint32_t uint32
 

Public Member Functions

 MTRand (uint32 oneSeed)
 
 MTRand (const uint32 bigSeed[], uint32 seedLength=state_size)
 
template<typename FloatT >
FloatT rand ()
 
double rand ()
 
double rand (const double &n)
 
uint32 randInt ()
 
uint32 randInt (uint32 n)
 
void seed ()
 
void seed (uint32 oneSeed)
 
void seed (const uint32 init_vector[], uint32 init_vector_length=state_size)
 
std::ostream & save (std::ostream &) const
 
std::istream & load (std::istream &)
 
template<>
float rand ()
 
template<>
double rand ()
 

Static Public Attributes

static const uint32 state_size = 624
 
static MTRand instance
 

Detailed Description

Definition at line 33 of file MersenneTwister.h.


The documentation for this class was generated from the following files: