An clonable unsynchronized random number generator that uses the same
algorithm as the concurrent object SimpleRandom. The caller must ensure
that each SimpleRandom instance is used from only one thread at a time.
Returns a random value chosen from a uniform distribution of the
non-negative integers less than n, or throws IllegalArgumentException
if n is negative or zero.
defnextInt(): Int
Returns a random value chosen from a uniform distribution of all valid
Ints.
An clonable unsynchronized random number generator that uses the same algorithm as the concurrent
object SimpleRandom
. The caller must ensure that eachSimpleRandom
instance is used from only one thread at a time.