Closed String10 closed 2 years ago
Maybe it should be nSeed % (PRNG_MAX + 1) but not nSeed % PRNG_MAX to get a value in [0, 32767]?
nSeed % (PRNG_MAX + 1)
nSeed % PRNG_MAX
[0, 32767]
Yes. You're right. It doesn't matter though.
Sure. π
Maybe it should be
nSeed % (PRNG_MAX + 1)
but notnSeed % PRNG_MAX
to get a value in[0, 32767]
?