Generates a random Boolean
value.
Generates a random Boolean
value.
Generates a random Double
value, uniformly distributed
between 0.0
(inclusive) and 1.0
(exclusive).
Generates a random Double
value, uniformly distributed
between 0.0
(inclusive) and 1.0
(exclusive).
Generates a random Float
value, uniformly distributed
between 0.0f
(inclusive) and 1.0f
(exclusive).
Generates a random Float
value, uniformly distributed
between 0.0f
(inclusive) and 1.0f
(exclusive).
Generates a random Int
value in the range of 0 (inclusive) until the specified value n
(exclusive).
Generates a random Int
value in the range of 0 (inclusive) until the specified value n
(exclusive).
Generates a random Int
value in the range Int.MinValue
to Int.MaxValue
.
Generates a random Int
value in the range Int.MinValue
to Int.MaxValue
.
Generates a random Long
value in the range Long.MinValue
to Long.MaxValue
.
Generates a random Long
value in the range Long.MinValue
to Long.MaxValue
.
WARNING:
Because it uses the same algorithm as java.util.Random
, with a seed of only 48 bits,
this function will not return all possible long values!
Resets the internal seed value to the given argument.
Resets the internal seed value to the given argument.
A random number generator that can be persisted (written and read).