WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Linear Congruential Sequences

multiplier
23
addend
0
modulus
181
initial value
1
number of iterations
1000
n23n 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.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.