SyTen
random.h File Reference

Random number generator engine generator. More...

#include <random>
+ Include dependency graph for random.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 syten
 Syten namespace.
 
 syten::Random
 The random number generation engine generation subsystem.
 

Typedefs

using syten::Random::Engine = std::mt19937_64
 The engine type returned by genEngine() below. More...
 
using syten::Random::Result = typename Engine::result_type
 The type of the results generated by engines from genEngine() as well as the seed type used to initialise the engine-generation engine. More...
 

Functions

void syten::Random::disableReproducible ()
 Sets the global seed to zero, causing non-reproducible generation of random number engines by genEngine(). More...
 
Engine syten::Random::genEngine ()
 Returns a random number generation engine. More...
 
Result syten::Random::genValue ()
 Generates a single value from the internal LCG, mainly useful for debugging. More...
 
Result const & syten::Random::getSeed ()
 Returns the seed used by the internal LCG. More...
 
Result syten::Random::initReproducible (Result const seed_=0)
 Initialises the global generating random number engine. More...
 
bool syten::Random::isReproducible ()
 Returns true if the global seed is non-zero and no threading is used. More...
 

Detailed Description

Random number generator engine generator.