genetiK::util::RandomDefault Class Reference
[Utility classes]

This class is the default random implementation with the 'Mersenne Twister' algorithm. More...

#include <Random.h>

Inheritance diagram for genetiK::util::RandomDefault:

Inheritance graph
[legend]
Collaboration diagram for genetiK::util::RandomDefault:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RandomDefault (unsigned int seed)
 RandomDefault constructor.
virtual unsigned int getNextInt ()
 Returns the next pseudorandom integer.
virtual unsigned int getNextInt (unsigned int max)
 Returns the next pseudorandom integer.
virtual double getNextReal ()
 Returns the next pseudorandom real.

Detailed Description

This class is the default random implementation with the 'Mersenne Twister' algorithm.

Random Number generator 'Mersenne Twister' * * This random number generator is described in the article by * M. Matsumoto & T. Nishimura, in: * ACM Transactions on Modeling and Computer Simulation, * vol. 8, no. 1, 1998, pp. 3-30. * Details on the initialization scheme can be found at * http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html * * Experts consider this an excellent random number generator. *


Constructor & Destructor Documentation

genetiK::util::RandomDefault::RandomDefault unsigned int  seed  ) 
 

RandomDefault constructor.

Parameters:
seed the random seed


Member Function Documentation

unsigned int genetiK::util::RandomDefault::getNextInt unsigned int  max  )  [virtual]
 

Returns the next pseudorandom integer.

This method returns the next pseudorandom integer. Returns an unsigned int greater than or equal to 0 and less than max;

Parameters:
max The return value upperbound

Implements genetiK::util::Random.

unsigned int genetiK::util::RandomDefault::getNextInt  )  [virtual]
 

Returns the next pseudorandom integer.

This method returns the next pseudorandom integer. Returns an unsigned int greater than or equal to 0 and less than 4294967296;

Implements genetiK::util::Random.

double genetiK::util::RandomDefault::getNextReal  )  [virtual]
 

Returns the next pseudorandom real.

This method returns the next pseudorandom double. Returns a double greater than or equal to 0.0 and less than 1.0;

Implements genetiK::util::Random.


The documentation for this class was generated from the following files:
Generated on Thu Feb 23 12:22:42 2006 for GenetiK by  doxygen 1.4.6