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.
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.
- Authors
Nathan Bronson
- Companion
- object
Value members
Concrete methods
Returns a random value chosen from a uniform distribution of all valid
Int
s.
Returns a random value chosen from a uniform distribution of all valid
Int
s.
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 the
non-negative integers less than n
, or throws IllegalArgumentException
if n
is negative or zero.