|
| template<FullRangeEngine Engine> |
| std::uint32_t | bits32 (Engine &engine) |
| |
| template<FullRangeEngine Engine> |
| std::uint64_t | bits64 (Engine &engine) |
| |
| float | unitFloat (std::uint32_t bits) |
| |
| double | unitDouble (std::uint64_t bits) |
| |
| float | lerp (float lo, float hi, float unit) |
| |
| double | lerp (double lo, double hi, double unit) |
| |
| double | affine (double offset, double scale, double value) |
| |
| double | standardNormal (double u1, double u2) |
| |
| int | poissonFromUnit (double unit, double mean) |
| |
| template<FullRangeEngine Engine> |
| float | uniformReal (Engine &engine, float lo, float hi) |
| |
| template<FullRangeEngine Engine> |
| double | uniformReal (Engine &engine, double lo, double hi) |
| |
| template<FullRangeEngine Engine> |
| std::uint64_t | below (Engine &engine, std::uint64_t count) |
| |
| template<FullRangeEngine Engine> |
| int | uniformInt (Engine &engine, int lo, int hi) |
| |
| template<FullRangeEngine Engine> |
| double | normal (Engine &engine, double mean, double stddev) |
| |
| template<FullRangeEngine Engine> |
| int | poisson (Engine &engine, double mean) |
| |
Distributions over any standard 32- or 64-bit generator (std::mt19937, std::mt19937_64), with the same results on every platform. Use these instead of the <random> distributions, whose algorithms are left to the standard library. The arithmetic lives out of line in world_rng.cpp.