notas-fnys/azarin.py

16 lines
169 B
Python
Raw Permalink Normal View History

2023-09-28 23:27:53 +02:00
from pylab import plot,show
N=100
a=1664525
c=101390422
m=4294967296
x=1
results=[]
for i in range(N):
2023-10-05 23:04:53 +02:00
x=(a*x+c)%m
2023-09-28 23:27:53 +02:00
results.append(x)
plot(results,"o")
show()