#include <Random.h>
Inheritance diagram for genetiK::util::RandomDefault:
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. |
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. *
|
RandomDefault constructor.
|
|
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;
Implements genetiK::util::Random. |
|
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. |
|
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. |