#include <cmath>
#include <cstdlib>
Go to the source code of this file.
Namespaces | |
namespace | An |
Functions | |
double | uniformRand (void) |
Return a number in [0;1[ in a uniform distribution. | |
unsigned | intRand (unsigned max) |
Return a number between [0;max[ in integer in a uniform distribution. | |
bool | boolRand (double prob=0.5) |
Return true with a probability prob. If no argument is given, prob = 0.5. | |
double | gaussianRand (double mean, double sigm) |
Return a random number with a gaussian distribution of a certain mean and standard deviation. |