Lumiera  0.pre.03
»edit your freedom«
random.hpp File Reference

Go to the source code of this file.

Description

Generating (pseudo) random numbers with controlled seed.

As an extension on top of the C++ random number framework, several instances of random number sequence generators can be easily created with a controlled seed. For simplified usage, two default instances are exposed as global variable

See also
Random_test

Definition in file random.hpp.

#include "lib/integral.hpp"
#include "lib/nocopy.hpp"
#include <random>

Classes

class  RandomSequencer< GEN >
 Access point to a selection of random number sources. More...
 
class  SeedNucleus
 Establishes a seed point for any instance or performance. More...
 

Typedefs

using Random = RandomSequencer< std::mt19937_64 >
 PRNG engine to use by default: 64bit mersenne twister.
 

Functions

void randomiseRandomness ()
 inject true randomness into the defaultGen
 
int rani ()
 
uint64_t ranu ()
 
double runi ()
 

Namespaces

 lib
 Implementation namespace for support and library code.