Image for Linear Congruential Generator

Linear Congruential Generator

A Linear Congruential Generator (LCG) is a simple method for generating a sequence of pseudo-random numbers. It starts with an initial number (called a seed) and uses a specific mathematical formula involving multiplication, addition, and division to produce the next number. This process is repeated to generate a series that appears random but is deterministic, meaning the sequence can be replicated if the initial seed and formula are known. LCGs are widely used in computer simulations and games to produce random-like numbers efficiently.