🎲

Dice Roller

Each die uses Math.random(), then floor(random × sides) + 1. The sum and history statistics describe the completed rolls.

Advertisement
Sum:
Average
Best
Rolls
Roll History

Copied

Copy failed. Select the result and copy it manually.

Embed this tool on your website

Use whole pixel dimensions from 1 to 4096.

× px (1–4096)

                        

💡 Integration Tip

Copy the embed code and paste it into your website HTML. The responsive version adapts to all screen sizes automatically.

4.0
6 ratings
✓

Popular Tools

No more tools to show
Explore All Tools

Play, method and practical limits

Each die uses Math.random(), then floor(random × sides) + 1. The sum and history statistics describe the completed rolls.

Limits and problems

This is a recreational simulation, not certified fair or cryptographically secure randomness. A small sample need not be balanced.

Counts are clamped to 1–20; unsupported sides fall back to D6. Invalid saved records are ignored. Clear cancels a pending roll.

Game data

History uses sessionStorage under diceRollerHistory. Clearing history keeps the last completed result; storage denial does not erase in-memory rolls.

About Dice Roller

Roll virtual dice for board games, RPGs, and random decisions. Supports multiple dice types (D4, D6, D8, D10, D12, D20) and rolling multiple dice at once. This is a recreational simulation, not certified fair or cryptographically secure randomness. A small sample need not be balanced.

Use Cases

Playing board games without physical dice
Rolling dice for tabletop RPGs like D&D
Making random decisions fairly
Generating random numbers for games
Teaching probability to students

Pro Tips

  • Use multiple D6 for games like Yahtzee
  • D20 is standard for D&D attack rolls
  • The history shows your previous rolls
  • No. A roll uses one die type for all 1–20 dice. Roll different types separately; mixed expressions are not supported.

How to use

1

Select the type of dice to roll

2

Choose how many dice to roll

3

Click Roll to generate random results

4

View individual dice and total sum

5

Choose 1–20 dice and D4, D6, D8, D10, D12, D20 or D100; alternatively choose one of eight presets.

6

Use Roll or Space outside interactive controls. The 400 ms animation keeps the count and sides selected when it started.

Frequently Asked Questions

Each die uses Math.random(), then floor(random × sides) + 1. The sum and history statistics describe the completed rolls. This is a recreational simulation, not certified fair or cryptographically secure randomness. A small sample need not be balanced.

A D20 is a 20-sided die commonly used in Dungeons & Dragons and other tabletop RPGs.

No. A roll uses one die type for all 1–20 dice. Roll different types separately; mixed expressions are not supported.

Yes, your recent rolls are saved during the session for reference.

Its minimum, maximum and highlights belong to the completed roll. Changed settings apply to the next roll.

FreeWebTools AI