UFJF - Machine Learning Toolkit  0.51.8
Random.hpp File Reference
#include <random>
#include <functional>
Include dependency graph for Random.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mltk
 UFJF-MLTK main namespace for core functionalities.
 
 mltk::random
 Namespace for random number generation (Mersenne Twister pseudorandom generator).
 

Functions

size_t mltk::random::init (unsigned int seed=0)
 Initialize the mersenne twister pseudorandom number generator. More...
 
template<typename Integral = int, typename Integral1 , typename Distribution = std::uniform_int_distribution<Integral>>
Integral mltk::random::intInRange (Integral low, Integral1 high)
 Returns a integer between low and high. More...
 
template<typename Real = double, typename Distribution = std::uniform_real_distribution<Real>>
Real mltk::random::floatInRange (Real low, Real high)
 Returns a float between low and high. More...
 
size_t mltk::random::getSeed ()
 Get the seed used in the mersenne twister. More...
 

Variables

unsigned int mltk::random::seed_param = 1
 
std::mt19937 mltk::random::m_generator {std::random_device{}()}
 

Detailed Description

Random namespace

Author
Mateus Coutinho Marim