#include <cmath>
#include <cstdlib>
Go to the source code of this file.
Namespaces | |
| namespace | Enki |
Classes | |
| class | Enki::FastRandom |
| A fast random generator. More... | |
| struct | Enki::UniformRand |
| Functor to be used with <algorithm>. More... | |
Functions | |
| double | Enki::uniformRand (void) |
| Return a number in [0;1[ in a uniform distribution. | |
| unsigned | Enki::intRand (unsigned max) |
| Return a number between [0;max[ in integer in a uniform distribution. | |
| bool | Enki::boolRand (double prob=0.5) |
| Return true with a probability prob. If no argument is given, prob = 0.5. | |
| double | Enki::gaussianRand (double mean, double sigm) |
| Return a random number with a gaussian distribution of a certain mean and standard deviation. | |
1.5.1