std::mersenne_twister_engine (3) - Linux Manuals
std::mersenne_twister_engine: std::mersenne_twister_engine
NAME
std::mersenne_twister_engine - std::mersenne_twister_engine
Synopsis
Defined in header <random>
template<
class UIntType,
size_t w, size_t n, size_t m, size_t r,
UIntType a, size_t u, UIntType d, size_t s, (since C++11)
UIntType b, size_t t,
UIntType c, size_t l, UIntType f
> class mersenne_twister_engine;
mersenne_twister_engine is a random number engine based on Mersenne_Twister algorithm. It produces high quality unsigned integer random numbers of type UIntType on the interval [0, 2w
-1].
The following type aliases define the random number engine with two commonly used parameter sets:
Defined in header <random>
Type Definition
mt19937(C++11) 0xffffffff, 7,
mt19937_64(C++11) 0x5555555555555555, 17,
Member types
Member type Definition
result_type The integral type generated by the engine. Results are undefined if this is not an unsigned integral type.
Member functions
Construction and Seeding
constructor (public member function)
seed (public member function)
Generation
operator() (public member function)
discard (public member function)
Characteristics
min gets the smallest possible value in the output range
[static]
max gets the largest possible value in the output range