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.
Returns a random value chosen from a uniform distribution of all valid
Int
s.
(Since version ) see corresponding Javadoc for more information.
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.