Defined in header <random> template<
class UIntType,
UIntType a,
UIntType c,
UIntType m
> class linear_congruential_engine; (since C++11)
linear_congruential_engine is a random number engine based on Linear congruential generator (LCG). A LCG has a state that consists of single integer.
The transition algorithm of the LCG function is xi+1 ← (axi+c) mod m.
The following typedefs define the random number engine with two commonly used parameter sets: