aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
utils_random_inl.h File Reference

Contains useful methods for random stuff. More...

#include <random>
#include <agrum/base/core/utils_random.h>
Include dependency graph for utils_random_inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities
namespace  gum::_rand_namespace_

Functions

std::mt19937 & gum::_rand_namespace_::generator ()
Idx gum::randomValue (const Size max=2)
 Returns a random Idx between 0 and max-1 included.
double gum::randomProba ()
 Returns a random double between 0 and 1 included (i.e.
void gum::initRandom (unsigned int seed=0)
 Initialize random generator seed.
unsigned int gum::currentRandomGeneratorValue ()
 returns the current generator's value
unsigned int gum::randomGeneratorSeed ()
 Returns the aGrUM's seed used by the std::generators.
std::mt19937 & gum::randomGenerator ()
 define a random_engine with correct seed

Detailed Description

Contains useful methods for random stuff.

Author
Pierre-Henri WUILLEMIN(_at_LIP6) and Christophe GONZALES (_at_AMU)

Definition in file utils_random_inl.h.