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