I need to create a RNG with specific "constants" and "equations"
r(1=< r < 0)
X^n+1 = (aX^n + b) mod m
r = X^n+1/m
-To get maximal length of period use = m = 2^k, k >= 0
- a = 5
- b = 1
-Depending on the size of m, define; x, m, a, b as long (maximum of X: 5*2^k-1)
" ^ " = indicates that characters after it are subscripted in first 2 equations, in the other equations it define upperscripts.
What I have tried:
Hey there folks,
I've a request from you, I'm having "Introduction to Java Programming" lecture, and I got an assignment, which is totally unsolvable to me right now.
I'm asking for your help to understand this "constants" "equations" and how to apply them to the code.
I'm so appreciate to everyone who try to help, in advance.
with all my respects.