Mersenne Twister pseudo random number generator.
More...
#include <MersenneTwister64.hpp>
Mersenne Twister pseudo random number generator.
MTToolBox::MersenneTwister64::MersenneTwister64 |
( |
| ) |
|
|
inline |
Constructor without arguments.
References seed().
MTToolBox::MersenneTwister64::MersenneTwister64 |
( |
uint64_t |
value | ) |
|
|
inline |
Constructor with a integer seed.
- Parameters
-
[in] | value | Seed of initialization |
References seed().
MTToolBox::MersenneTwister64::MersenneTwister64 |
( |
const std::string & |
value | ) |
|
|
inline |
Constructor with a string seed.
- Parameters
-
[in] | value | Seed of initialization |
References seed().
MTToolBox::MersenneTwister64::MersenneTwister64 |
( |
const uint64_t * |
value, |
|
|
int |
size |
|
) |
| |
|
inline |
Constructor with an array of integer.
- Parameters
-
[in] | value | Seed of initialization |
[in] | size | length of value |
References seed().
MTToolBox::MersenneTwister64::~MersenneTwister64 |
( |
| ) |
|
|
inline |
int MTToolBox::MersenneTwister64::bitSize |
( |
| ) |
const |
|
inlinevirtual |
uint64_t MTToolBox::MersenneTwister64::generate |
( |
| ) |
|
|
inlinevirtual |
uint64_t MTToolBox::MersenneTwister64::next |
( |
| ) |
|
|
inline |
Generates pseudo random number.
- Returns
- a 64-bit unsigned integer
Referenced by generate().
void MTToolBox::MersenneTwister64::seed |
( |
uint64_t |
value | ) |
|
|
inlinevirtual |
void MTToolBox::MersenneTwister64::seed |
( |
const std::string & |
value | ) |
|
|
inline |
Initialization by a string.
- Parameters
-
[in] | value | Seed of initialization |
void MTToolBox::MersenneTwister64::seed |
( |
const uint64_t * |
value, |
|
|
int |
key_length |
|
) |
| |
|
inline |
Initialization by an array of unsigned integers.
- Parameters
-
[in] | value | Seed of initialization |
[in] | key_length | Length of value |
template<class T >
void MTToolBox::MersenneTwister64::seed_array |
( |
const T * |
init_key, |
|
|
int |
key_length |
|
) |
| |
|
inline |
Initialization by an array of T type.
- Template Parameters
-
T | type of element of value |
- Parameters
-
[in] | init_key | Seed of initialization |
| key_length | Length of value |
References seed().
The documentation for this class was generated from the following file: