Vcsn  2.4
Be Rational
random.hh File Reference
#include <iterator>
#include <random>
#include <vcsn/misc/export.hh>
Include dependency graph for random.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vcsn::discrete_chooser< RandomGenerator >
 Random selector on container, using discrete distribution. More...
 
struct  vcsn::random_selector< RandomGenerator >
 Random selector on container, using uniform distribution. More...
 

Namespaces

 vcsn
 

Functions

std::mt19937 & vcsn::make_random_engine ()
 Generate a unique random device. More...
 
template<typename RandomGenerator = std::default_random_engine>
static bool vcsn::choose_map (const std::vector< float > &map, RandomGenerator &gen=RandomGenerator())
 Choose whether to pick an element from a map or not. More...
 
template<typename RandomGenerator >
random_selector< RandomGenerator > vcsn::make_random_selector (RandomGenerator &g)