Professional Documents
Culture Documents
Known :
Question :
a. Which LCG will achieve its maximum cycle length ? Answer the question without
computing any Zi values ?
b. Compute Zi through Zi from a seed of 29(Z0 = 29) for secod LCG.
Answer :
∴ Because of the maximum cycle length that LCG will achieve is equal to m, so the maximum
cycle length for this equation = 32.
∴ Maximum cycle length of this LCG will achieve is not equal to m or maximum cycle length
for this equation is not equal to m.
∴ The result of I = 4 until I = 32 is the same value, so they have the same results on Ui and also
Zi.