Lumiera  0.pre.03
»edit your freedom«
RandomSequencer< GEN > Class Template Reference

#include "lib/random.hpp"

Description

template<class GEN>
class lib::RandomSequencer< GEN >

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
 
NonCopyableoperator= (NonCopyable const &)=delete
 
+ Inheritance diagram for RandomSequencer< GEN >:
+ Collaboration diagram for RandomSequencer< GEN >:

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