aGrUM  0.14.2
utils_random.h File Reference

Contains usefull methods for random stuff. More...

#include <chrono>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <numeric>
#include <random>
#include <utility>
#include <vector>
#include <agrum/agrum.h>
#include <agrum/core/utils_random_inl.h>
#include <agrum/core/utils_random_tpl.h>
+ Include dependency graph for utils_random.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gum
 gum is the global namespace for all aGrUM entities
 

Functions

Idx gum::randomValue (const Size max=2)
 Returns a random Idx between 0 and max-1 included. More...
 
double gum::randomProba ()
 Returns a random double between 0 and 1 included (i.e. More...
 
template<typename GUM_SCALAR >
std::vector< GUM_SCALAR > gum::randomDistribution (Size n)
 Return a random discrete distribution. More...
 
unsigned int gum::randomGeneratorSeed ()
 Returns the aGrUM's seed used by the std::generators. More...
 
void gum::initRandom (unsigned int seed=0)
 Initialize random generator seed. More...
 
std::default_random_engine gum::getRandomGenerator (unsigned int seed=0)
 define a random_engine with correct seed More...
 

Detailed Description

Contains usefull methods for random stuff.

Author
Vincent RENAUDINEAU and Pierre-Henri WUILLEMIN

Definition in file utils_random.h.