Step by step
- Pick a tool: Scratch, a spreadsheet or code.
- Generate a random number from 1 to the sides.
- Show it, and repeat for each die.
At a glance
| Tool | Code or block | Roll again |
|---|---|---|
| Scratch / MakeCode | pick random 1 to 6 | Click or shake |
| Excel / Sheets | =RANDBETWEEN(1,6) | F9 or edit any cell |
| Python | random.randint(1, 6) | Run again |
| JavaScript | Math.floor(Math.random()*6)+1 | Call again |
Related questions
How do I add up several dice?
Generate one number per die and add them, as this page does.
How do I make a paper die?
Draw a cross of 6 squares, number them so opposite faces add to 7, fold and tape.
Is Math.random fair enough?
For games, yes; this page uses crypto random for exact fairness.
More questions: dice roller
- How to Roll a 6-Sided Die Online (1 to 6)
- How to Roll a d20 and RPG Dice Online
- Can I Roll Dice on My Phone Without an App?
- Can I Use a Dice Roller for Monopoly and Board Games?
- Can I Use a Dice Roller in the Classroom and With Kids?
- Are Online Dice Rollers Fair, and Why Do Bad Streaks Happen?
- Dice roller without ads or sign-up
- How to roll dice in Discord
Updated November 14, 2026.