Creates a new Random instance.
an optional seed; if specified the Random instance will produce a reproducible sequence for testing purposes
Returns the result of rolling a simulated 6-sided die.
Equivalent to pick(1,6).
a random number between 1 and 6
Returns a random number between 0 (inclusive) and 1 (exclusive).
Effectively the same as Math.random(), but uses the random number
generator of this Random object.
a random number between 0 and 1
Returns a random integer between integers m and n, inclusive.
one end of the number range
the other end of the number range
a random integer from m to n inclusive
Returns a random integer between m (inclusive) and n
(inclusive), but excluding the value of excluded.
the excluded integer which is never to be returned
one end of the range
the other end of the range
a random integer from m to n inclusive, but not excluded
Simulates rolling n dice.
the number of dice to roll
if true, an image of each die result is printed to the console
an array of the n rolled numbers, in the order that they were selected
A class that produces pseudorandom numbers.