cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
This component provides supplementary features to the ones present in <random>
that are specific to cxxomfort.
linear_conguential_engine
in the Standard Library.cxxomfort::library::random::splitmix64
- 64-bit simple PRNG by Sebastiano Vigna.default_random_engine()
, from Fundamentals v2.reseed()
, from Fundamentals v2.randint()
, from Fundamentals v2.All interfaces are defined in the namespace cxxomfort::library::random::
.
The following linear congruential alternatives to std::minstd
are provided in namespace cxxomfort::library::random
:
lcg_numerical_recipes_rand
- LCG as per "Numerical Recipes"mmix_rand
- LCG as per Donald Knuth in "The Art of Computer Programming"musl_rand
- LCG as used by musl
library's rand
.xkcd221_rand
- LCG as per Randal Munroe in "xkcd #221".