3 ms·
This can also be used to determine the period of Linear Congruential PRNGs, i.e those in form of X(n+1) = (A * X(n) + B) mod C which happens to be what ma
by eps 10y ago
This can also be used to determine the period of Linear Congruential PRNGs, i.e those in form of
X(n+1) = (A * X(n) + B) mod C
which happens to be what many stdlib versions of rand() are.
https://en.wikipedia.org/wiki/Linear_congruential_generator https://en.wikipedia.org/wiki/Linear_congruential_generator