Dice Roller
How This Converter Works
Rolls one or two six-sided dice. Each die is independently selected with Math.random and has an integer result from 1 through 6.
Formula or rule
Die = floor(Math.random() * 6) + 1.
Example
- Input
- Roll two dice
- Calculation
- One possible pair of independent rolls is 3 and 5.
- Result
- 3 5 (one possible result)