Re:How Do Computers Generate Random Numbers?
by lsc36 on Monday September 14, 2020 @08:02AM
(#24469107)
That depends on the modulus being divisible by 8, which is not always the case. A common example is modulus = 2^31 - 1 [0] which is prime.
[0] https://en.wikipedia.org/wiki/Linear_congruential_generator#...
(Since we can reasonably assume that randomNumber is a binary number, and thus would be balanced over 8 values instead of 6.)