Allolib
1.0
C++ Components For Interactive Multimedia
|
Combined Tausworthe uniform pseudo-random number generator. More...
Public Member Functions | |
Tausworthe () | |
Default constructor uses a randomly generated seed. | |
Tausworthe (uint32_t seed) | |
uint32_t | operator() () |
Generate next uniform random integer in [0, 2^32) | |
void | seed (uint32_t v) |
Set seed. | |
void | seed (uint32_t v1, uint32_t v2, uint32_t v3, uint32_t v4) |
Set seed. | |
Combined Tausworthe uniform pseudo-random number generator.
This generator produces highly random numbers, but is more expensive than than a linear congruential RNG. It is based on the paper P. L'Ecuyer, "Maximally Equidistributed Combined Tausworthe Generators", Mathematics of Computation, 65, 213 (1996), 203–213. http://www.iro.umontreal.ca/~lecuyer/papers.html
Definition at line 299 of file al_Random.hpp.
|
inline |
[in] | seed | Initial seed value |
Definition at line 324 of file al_Random.hpp.