MRPT
2.0.1
|
Portable MT19937 random generator, C++11 UniformRandomBitGenerator compliant.
It is ensured to generate the same numbers on any compiler and system.
Definition at line 42 of file RandomGenerators.h.
#include <mrpt/random/RandomGenerators.h>
Public Types | |
using | result_type = uint32_t |
Public Member Functions | |
result_type | operator() () |
void | seed (const uint32_t seed) |
Static Public Member Functions | |
static constexpr result_type | min () |
static constexpr result_type | max () |
Private Member Functions | |
void | generateNumbers () |
Private Attributes | |
uint32_t | m_MT [624] |
uint32_t | m_index {0} |
bool | m_seed_initialized {false} |
using mrpt::random::Generator_MT19937::result_type = uint32_t |
Definition at line 45 of file RandomGenerators.h.
|
private |
Definition at line 59 of file RandomGenerator.cpp.
References m_MT, m_seed_initialized, seed(), and twist().
Referenced by operator()().
|
inlinestatic |
Definition at line 50 of file RandomGenerators.h.
|
inlinestatic |
Definition at line 46 of file RandomGenerators.h.
Generator_MT19937::result_type Generator_MT19937::operator() | ( | ) |
Definition at line 42 of file RandomGenerator.cpp.
References generateNumbers(), m_index, and m_MT.
void Generator_MT19937::seed | ( | const uint32_t | seed | ) |
Definition at line 77 of file RandomGenerator.cpp.
References m_index, m_MT, and m_seed_initialized.
Referenced by generate_test_data(), generateNumbers(), and mrpt::random::CRandomGenerator::randomize().
|
private |
Definition at line 61 of file RandomGenerators.h.
Referenced by operator()(), and seed().
|
private |
Definition at line 60 of file RandomGenerators.h.
Referenced by generateNumbers(), operator()(), and seed().
|
private |
Definition at line 62 of file RandomGenerators.h.
Referenced by generateNumbers(), and seed().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |