You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The choice of m seems to generate very interesting phenomena.
%matplotlibinlineimportmatplotlib.pyplotasplt# We can only change [a , c , m]N=1000a=3125#57c=19*17#287m=10.99x=1# This shows that a has to be in range 40<a<60 and c has to be in range of 200<c<300 for it to be somewhat randomresults= []
foriinrange(N):
x= (a*x+c)%m-5results.append(round(x))
plt.plot(results,"o")
plt.show()
plt.hist(results, bins=10)
The text was updated successfully, but these errors were encountered:
The choice of m seems to generate very interesting phenomena.
The text was updated successfully, but these errors were encountered: