: V {j+1} = \left( A \times V j \right) \bmod P (see Linear congruential generator, RANDU)
RANDU |
The GNU Scientific Library includes several random number generators of the Lehmer form, including MINSTD, RANF, and the infamous IBM random number generator RANDU.