Combined Tausworthe uniform pseudo-random number generator. More...
#include <rnd.h>
| Public Member Functions | |
| RNGTaus (uint32_t seed) | |
| uint32_t | operator() () | 
| Generates uniform random unsigned integer in [0, 2^32). | |
| void | operator= (uint32_t seed) | 
| Set seed. | |
| void | seed (uint32_t s1, uint32_t s2, uint32_t s3, uint32_t s4) | 
| 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
| RNGTaus | ( | uint32_t | seed | ) | 
| [in] | seed | Initial seed value |