27 #ifndef GUM_UTILS_RANDOM_H 28 #define GUM_UTILS_RANDOM_H 65 template <
typename GUM_SCALAR >
89 #endif // GUM_NO_INLINE std::vector< GUM_SCALAR > randomDistribution(Size n)
Return a random discrete distribution.
Idx randomValue(const Size max=2)
Returns a random Idx between 0 and max-1 included.
double randomProba()
Returns a random double between 0 and 1 included (i.e.
gum is the global namespace for all aGrUM entities
unsigned int randomGeneratorSeed()
Returns the aGrUM's seed used by the std::generators.
void initRandom(unsigned int seed=0)
Initialize random generator seed.
Contains usefull methods for random stuff.
std::default_random_engine getRandomGenerator(unsigned int seed)
define a random_engine with correct seed
Contains useful methods for random stuff.
std::size_t Size
In aGrUM, hashed values are unsigned long int.