The template parameter _UIntType
must be an unsigned integral type large enough to store values up to (__m-1). If the template parameter __m
is 0, the modulus __m
used is std::numeric_limits<_UIntType>::max() plus 1. Otherwise, the template parameters __a
and __c
must be less than __m
.
The size of the state is .
Definition at line 297 of file random.
|
The type of the generated random value. |
|
Constructs a linear_congruential random number generator engine with seed
|
|
Constructs a linear_congruential random number generator engine seeded from the generator function
|
|
Gets the largest possible value in the output range. |
|
Gets the smallest possible value in the output range.
The minumum depends on the |
|
Gets the next random number in the sequence. Definition at line 134 of file random.tcc. |
|
Reseeds the linear_congruential random number generator engine sequence using values from the generator function
|
|
Reseeds the linear_congruential random number generator engine sequence to the seed __s.
Definition at line 102 of file random.tcc. |
|
Compares two linear congruential random number generator objects of the same type for inequality.
|
|
Writes the textual representation of the state x(i) of x to
|
|
Compares two linear congruential random number generator objects of the same type for equality.
|
|
Sets the state of the engine by reading its textual representation from
The textual representation must have been previously written using an output stream whose imbued locale and whose type's template specialization arguments _CharT and _Traits were the same as those of
|
|
An increment. |
|
The modulus. |
|
The multiplier. |