std::linear_congruential_engine
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> template< class UIntType, UIntType a, UIntType c, UIntType m > class linear_congruential_engine; |
( C++11) | |
linear_congruential_engine . LCG 1 . LCG x
i+1 (ax
i+c) mod m.
i+1 (ax
i+c) mod m.
-
result_type
|
. , .
: The integral type generated by the engine. Results are undefined if this is not an unsigned integral type. |
-
| c (public -) | |
(public -) | |
(C++11) |
(public -) |
(public -) | |
[static] |
(public static -) |
[static] |
(public static -) |
,
(C++11)(C++11)( C++20) |
() |
| / () |
constexpr UIntType multiplier [static] |
() . (public static -) |
constexpr UIntType increment [static] |
() . (public static -) |
constexpr UIntType modulus [static] |
() . (public static -) |
constexpr UIntType default_seed [static] |
( 1) . (public static -) |