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.0

Example 0 


dice
    



 
 # will return a number between 1 and 6 inclusively
 # (with an even probaility distribution).



Example 1 


dice 3



 
 # will return a number between 1 and 3 inclusively