congruentiegenerator
The congruentiegenerator is a class of pseudo-random number generators based on modular arithmetic. It generates sequences of integers by repeatedly applying a linear recurrence modulo a fixed modulus. In its simplest form, the generator uses the relation x_{n+1} = (a x_n + c) mod m, with m > 1, and parameters a, c chosen to influence the period and distribution of the output. The produced integers typically lie in the range [0, m-1] and can be scaled to other ranges as needed.
The concept rests on the idea of congruence in modular arithmetic. The sequence’s quality and period depend
Variants include the multiplicative congruentiegenerator, where c is zero, and the mixed (additive) version with c
Applications typically include simulations and statistical sampling where performance is valued over cryptographic security. Limitations include
See also: pseudo-random number generator, linear congruential generator, modular arithmetic.