Sided die
suggest change# Roll a 6 sided die, rand(6) returns a number from 0 to 5 inclusive
dice_roll_result = 1 + rand(6)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents
# Roll a 6 sided die, rand(6) returns a number from 0 to 5 inclusive
dice_roll_result = 1 + rand(6)