dice num_sides (number)
Throws a dice with the specified num_sides (defaults to 6) and returns the score as a number between 1 and num_sides.
6
1
num_sides
Introduced in v2.0
dice
# will return a number between 1 and 6 inclusively # (with an even probability distribution).
dice 3
# will return a number between 1 and 3 inclusively