Kepler's Torus
|
#include <uniform.h>
Public Member Functions | |
Uniform (Bounds bounds) | |
Uniform (Bounds bounds, unsigned int seed) | |
double | random () |
![]() | |
Distribution (std::size_t seed) | |
Create a new random number distribution with the given seed. | |
virtual | ~Distribution ()=0 |
Make this class abstract. | |
Public Attributes | |
std::uniform_real_distribution< double > | realDistribution |
Bounds const | bounds |
![]() | |
std::size_t const | seed |
Seed used to initialise the random number generator. | |
std::mt19937 | mt |
Mersenne Twister pseudo-random number generator, initialised by the given seed and used to generate numbers. | |
Uniform probabilistic distribution, provides a very random but seeded random generator
|
inlineexplicit |
|
inline |
Constructs a Random Generator generating numbers uniformly distributed, based on the seed given
lowerBound | is the lowest possible number appearing |
upperBound | is the lowers number above lowerBound impossible to appear |
seed | is determining the resulting numbers; the same seed always results in the same numbers |
Definition at line 25 of file uniform.h.
|
inline |
Returns a double randomly generated uniformly between the two bounds, based on the internal seed of the distribution
Definition at line 31 of file uniform.h.
Bounds const Uniform::bounds |
std::uniform_real_distribution<double> Uniform::realDistribution |