Miscellaneous (C++)¶
Random Number Generator¶
The library uses a RNG that is shared amongst the different functions that utilize it. To initialize (=seed) it, there
is a catana::init_random() function.
-
void
catana::init_random()¶ Initialize the random number generator with a random seed.
uses std::random_device to generate a random seed
-
void
catana::init_random(unsigned int seed)¶ Initialize the random number generator with a specific seed.
generates reproducable results for repeated program runs
- Parameters
seed: the seed