Lumiera  0.pre.03
»edit your freedom«
Random_test Class Reference

Description

Test:
demonstrate simple access to random number generation, as well as the setup of controlled random number sequences.
See also
random.hpp

Definition at line 41 of file random-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void verify_reproducibleSequence ()
 

Member Function Documentation

◆ simpleUsage()

void simpleUsage ( )
inlineprivate
Test:
demonstrate usage of default random number generators

Definition at line 54 of file random-test.cpp.

◆ verify_reproducibleSequence()

void verify_reproducibleSequence ( )
inlineprivate
Test:
demonstrate that random number sequences can be reproduced
  • use a rigged SeedNucleus, always returning a fixed sees
  • build two distinct random sequence generators, yet seeded from the same source; they will produce the same sequence
  • sequences can be re-shuffled by a seed value, so that the following random numbers will start to differ
  • but even this re-shuffling is deterministic

Definition at line 74 of file random-test.cpp.

References RandomSequencer< GEN >::randomise().

+ Here is the call graph for this function:
+ Inheritance diagram for Random_test:
+ Collaboration diagram for Random_test:

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