Allolib  1.0
C++ Components For Interactive Multimedia
al::rnd::Tausworthe Class Reference

Combined Tausworthe uniform pseudo-random number generator. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/math/al_Random.hpp>

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Tausworthe()

al::rnd::Tausworthe::Tausworthe ( uint32_t  seed)
inline
Parameters
[in]seedInitial seed value

Definition at line 324 of file al_Random.hpp.


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