pixled-lib
1.0
|
#include <random.h>
Public Member Functions | |
RandomEngineConfig (time period) | |
RandomEngineConfig (time period, unsigned long seed) | |
Protected Attributes | |
time | period |
unsigned long | seed |
A class storing the two parameters required to define a random engine: a period and a seed.
The period defines the frame count during which the random engine stays in its current state.
The seed can be used to generate different random sequences.
Note that this class does not generate any random number, it just stores some configuration.
|
inline |
RandomEngineConfig constructor.
The seed
is initialized randomly using an [std::random_device][https://en.cppreference.com/w/cpp/numeric/random/random_device) instance.
period | random engine period |
|
inline |
RandomEngineConfig constructor.
period | random engine period |
seed | random engine seed |
|
protected |
Random engine period.
The random value of the engine effectively changes at each period.
|
protected |
Seed used to initiate the random number sequence.