Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/random.hpp"
Access point to a selection of random number sources.
For each kind of performance or usage, a common execution scheme is established to initiate generated number sequences, allowing for seemingly random yet reproducible behaviour — or for actually contingent behaviour when necessary. Client code should rely on Dependency-Injection or the static accessors.
Definition at line 65 of file random.hpp.
Public Member Functions | |
RandomSequencer (SeedNucleus &) | |
Random instances are created as part of an execution scheme. | |
int | i32 () |
void | randomise (SeedNucleus &) |
inject controlled randomisation | |
uint64_t | u64 () |
double | uni () |
Private Attributes | |
GEN | generator_ |
std::uniform_real_distribution< double > | uniformD_ |
std::uniform_int_distribution< int > | uniformI_ |
std::uniform_int_distribution< uint64_t > | uniformU_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |