Pseudorandom numbers
The most commonly used procedure for generating pseudorandom
numbers is the linear congruential method.
If we want to generate a sequence
of random integers where each xi satisfies 0 ? xi< m, we choose x0 and
two numbers: a, c with 2 ?a <m, 0 ? c < m, and use the formula