Random dice throw
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.
Introduced in v2.0
|
dice |
# will return a number between 1 and 6 inclusively # (with an even probaility distribution). |
|
dice 3 |
# will return a number between 1 and 3 inclusively |