#include <random>
#include <functional>
Go to the source code of this file.
|
| | mltk |
| | UFJF-MLTK main namespace for core functionalities.
|
| |
| | mltk::random |
| | Namespace for random number generation (Mersenne Twister pseudorandom generator).
|
| |
|
| 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...
|
| |
|
|
unsigned int | mltk::random::seed_param = 1 |
| |
|
std::mt19937 | mltk::random::m_generator {std::random_device{}()} |
| |
Random namespace
- Author
- Mateus Coutinho Marim