std::mersenne_twister_engine< _UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f >(3cxx) | std::mersenne_twister_engine< _UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f >(3cxx) |
std::mersenne_twister_engine< _UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f >
#include <random.h>
typedef _UIntType result_type
template<typename _Sseq , typename =
_If_seed_seq<_Sseq>> mersenne_twister_engine (_Sseq
&__q)
Constructs a mersenne_twister_engine random number generator engine seeded
from the seed sequence __q. mersenne_twister_engine
(result_type __sd)
void discard (unsigned long long __z)
Discard a sequence of random numbers. result_type operator() ()
template<typename _Sseq > _If_seed_seq< _Sseq > seed (_Sseq
&__q)
template<typename _Sseq > auto seed (_Sseq &__q) ->
_If_seed_seq< _Sseq >
void seed (result_type __sd=default_seed)
static constexpr result_type max ()
Gets the largest possible value in the output range. static constexpr
result_type min ()
Gets the smallest possible value in the output range.
static constexpr result_type default_seed
static constexpr result_type initialization_multiplier
static constexpr size_t mask_bits
static constexpr size_t shift_size
static constexpr size_t state_size
static constexpr result_type tempering_b
static constexpr result_type tempering_c
static constexpr result_type tempering_d
static constexpr size_t tempering_l
static constexpr size_t tempering_s
static constexpr size_t tempering_t
static constexpr size_t tempering_u
static constexpr size_t word_size
static constexpr result_type xor_mask
template<typename _UIntType1 , size_t __w1, size_t __n1, size_t
__m1, size_t __r1, _UIntType1 __a1, size_t __u1, _UIntType1 __d1, size_t
__s1, _UIntType1 __b1, size_t __t1, _UIntType1 __c1, size_t __l1, _UIntType1
__f1, typename _CharT , typename _Traits > std::basic_ostream<
_CharT, _Traits > & operator<<
(std::basic_ostream< _CharT, _Traits > &__os, const
std::mersenne_twister_engine< _UIntType1, __w1, __n1, __m1, __r1,
__a1, __u1, __d1, __s1, __b1, __t1, __c1, __l1, __f1 > &__x)
Inserts the current state of a % mersenne_twister_engine random number
generator engine __x into the output stream __os. bool
operator== (const mersenne_twister_engine &__lhs, const
mersenne_twister_engine &__rhs)
Compares two % mersenne_twister_engine random number generator objects of the
same type for equality. template<typename _UIntType1 , size_t __w1,
size_t __n1, size_t __m1, size_t __r1, _UIntType1 __a1, size_t __u1,
_UIntType1 __d1, size_t __s1, _UIntType1 __b1, size_t __t1, _UIntType1 __c1,
size_t __l1, _UIntType1 __f1, typename _CharT , typename _Traits >
std::basic_istream< _CharT, _Traits > &
operator>> (std::basic_istream< _CharT, _Traits >
&__is, std::mersenne_twister_engine< _UIntType1, __w1, __n1,
__m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, __l1, __f1 >
&__x)
Extracts the current state of a % mersenne_twister_engine random number
generator engine __x from the input stream __is.
class std::mersenne_twister_engine< _UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f >"A generalized feedback shift register discrete random number generator.
This algorithm avoids multiplication and division and is designed to be friendly to a pipelined architecture. If the parameters are chosen correctly, this generator will produce numbers with a very long period and fairly good apparent entropy, although still not cryptographically strong.
The best way to use this generator is with the predefined mt19937 class.
This algorithm was originally invented by Makoto Matsumoto and Takuji Nishimura.
Template Parameters
Definition at line 472 of file random.h.
The type of the generated random value.
Definition at line 507 of file random.h.
Definition at line 527 of file random.h.
Definition at line 530 of file random.h.
Constructs a mersenne_twister_engine random number generator engine seeded from the seed sequence __q.
Parameters
Definition at line 541 of file random.h.
Discard a sequence of random numbers.
Definition at line 431 of file bits/random.tcc.
Gets the largest possible value in the output range.
Definition at line 562 of file random.h.
Gets the smallest possible value in the output range.
Definition at line 555 of file random.h.
Definition at line 451 of file bits/random.tcc.
"
Definition at line 350 of file bits/random.tcc.
Definition at line 324 of file bits/random.tcc.
Inserts the current state of a % mersenne_twister_engine random number generator engine __x into the output stream __os.
Parameters
Returns
Compares two % mersenne_twister_engine random number generator objects of the same type for equality.
Parameters
Returns
Definition at line 587 of file random.h.
Extracts the current state of a % mersenne_twister_engine random number generator engine __x from the input stream __is.
Parameters
Returns
Definition at line 523 of file random.h.
Definition at line 522 of file random.h.
Definition at line 513 of file random.h.
Definition at line 512 of file random.h.
Definition at line 511 of file random.h.
Definition at line 518 of file random.h.
Definition at line 520 of file random.h.
Definition at line 516 of file random.h.
Definition at line 521 of file random.h.
Definition at line 517 of file random.h.
Definition at line 519 of file random.h.
Definition at line 515 of file random.h.
Definition at line 510 of file random.h.
Definition at line 514 of file random.h.
Generated automatically by Doxygen for libstdc++ from the source code.
Thu Feb 16 2023 | libstdc++ |