cpp/numeric/random/linear congruential engine

is a random number engine based on (LCG). A LCG has a state that consists of a single integer.

The transition algorithm of the LCG function is.

The following typedefs define the random number engine with two commonly used parameter sets: