49#ifndef GUM_UTILS_RANDOM_H
50#define GUM_UTILS_RANDOM_H
90 template <
typename GUM_SCALAR >
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
Idx randomValue(const Size max=2)
Returns a random Idx between 0 and max-1 included.
unsigned int randomGeneratorSeed()
Returns the aGrUM's seed used by the std::generators.
void initRandom(unsigned int seed=0)
Initialize random generator seed.
std::mt19937 & randomGenerator()
define a random_engine with correct seed
unsigned int currentRandomGeneratorValue()
returns the current generator's value
double randomProba()
Returns a random double between 0 and 1 included (i.e.
std::vector< GUM_SCALAR > randomDistribution(Size n)
Return a random discrete distribution.
std::mt19937 & generator()
gum is the global namespace for all aGrUM entities
Contains useful methods for random stuff.
Contains useful methods for random stuff.