5 #ifndef DIGNEA_PSEUDORANDOM_H
6 #define DIGNEA_PSEUDORANDOM_H
29 #include <dignea/utilities/random/RandomGenerator.h>
59 static int randInt(
int minBound,
int maxBound);
67 static double randDouble(
double minBound,
double maxBound);
76 static double randNormal(
double mean,
double standardDeviation);
This is the interface for the random number generator in dignea. The idea is that all the random numb...
Definition: PseudoRandom.h:39
static int randInt(int minBound, int maxBound)
Returns a random integer int the range [minBound, maxBound].
Definition: PseudoRandom.cpp:38
static RandomGenerator * randomGenerator_
Definition: PseudoRandom.h:41
static double randNormal(double mean, double standardDeviation)
Returns a random value extracted from a Normal Distribution with mean and standardDeviation.
Definition: PseudoRandom.cpp:61
static double randDouble()
Generates a random double value between 0.0 and 1.0.
Definition: PseudoRandom.cpp:31
static double * randSphere(int dimension)
Get random points from an hypersphere (center = 0, radius = 1) Code taken from Maurice Clerc's implem...
Definition: PseudoRandom.cpp:83