WOLFRAM|DEMONSTRATIONS PROJECT

Linear Congruential Sequences

​
multiplier
23
addend
0
modulus
181
initial value
1
number of iterations
1000
n23n mod 181
180 distinct values reached
Linear congruential sequences are often used to make pseudorandom numbers. Try to pick moduli where the points lie as randomly as possible. Increasing the number of iterations often does not in fact increase the number of distinct points.