D20 Roller & Online Dice Simulator

Roll virtual dice instantly, choose from D4 to D20, and track your results.

Spin with Spacebar

Press Space to instantly start or stop the wheel using your keyboard.

1 / 25

Pick your dice and track rolling statistics.

Dice Type

Roll Statistics

Total Rolls
0
Current Dice
D6
Recent Outcome
-

Roll History

No rolls yet

Virtual Dice Simulator: How It Works

An online dice roller generates random outcomes without requiring a physical set of gaming dice. Whether you are running a tabletop campaign over a video call, replacing a lost board game die, or demonstrating probability in a classroom, WheelShuffle rolls polyhedral dice directly in your web browser.

Rolling Controls & Session History

  1. Choose your die: Select any of the six polyhedral options: D4, D6, D8, D10, D12 or D20. The six-sided D6 is active by default.
  2. Roll: Select the Roll Dice button, or press Spacebar or Enter on your keyboard. When a roll completes, the button label changes to Roll Again.
  3. Animation: A D6 displays as an animated CSS 3D cube that tumbles and settles on the chosen face. The D4, D8, D10, D12 and D20 display as animated, faceted two-dimensional drawings that rotate and settle on the final number.
  4. Read your outcome: The resulting number appears on the die and under Recent Outcome. The Total Rolls counter tracks how many times you have rolled during the session.
  5. Review Roll History: Every completed roll is added to the Roll History panel in reverse chronological order (newest first). Selecting Clear history resets the history list, Total Rolls and Recent Outcome.
  6. Sound settings: Rolling audio is controlled by the mute setting. Select the speaker button or press M to mute or unmute it. Where browser storage is available, your mute choice is remembered for future visits in the same browser.

The Six Polyhedral Dice Supported by WheelShuffle

Dice are named using the letter “d” followed by their number of faces, so a d6 has six faces and a d20 has twenty. These are the six polyhedral options available in the simulator:

Supported dice, their shapes, number ranges and typical tabletop roles
DieGeometric shapeNumber rangePrimary tabletop role
D4Tetrahedron (4-sided pyramid)1–4Small weapon damage (daggers, darts), low-level spells such as Magic Missile
D6Cube (regular hexahedron)1–6Family board games (Monopoly, Catan, Yahtzee) and individual damage rolls such as a shortsword
D8Regular octahedron1–8One-handed martial weapons (longswords, rapiers), healing spells such as Cure Wounds
D10Pentagonal trapezohedron1–10Heavy ranged weapons (heavy crossbows), cantrips such as Eldritch Blast
D12Regular dodecahedron1–12Heavy two-handed weapons (greataxe), the barbarian's hit die
D20Regular icosahedron1–20The main resolution die in D&D and Pathfinder: attack rolls, ability checks and saving throws

Note on D10 and percentiles: physical tabletop sets often include a second ten-sided die numbered in tens (00–90) to roll percentiles from 1 to 100. WheelShuffle's D10 rolls a single die numbered 1–10. For a 1–100 result, use the random number generator.

Using the D20 Roller for D&D and Tabletop RPGs

In Dungeons & Dragons and Pathfinder, the 20-sided die decides whether many actions succeed or fail. When a character attempts an uncertain task, the player rolls a d20, adds character modifiers, and compares the total with a target number.

Core D20 Mechanics: Attacks, Checks & Saving Throws

  • Attack rolls: roll the d20, add your attack modifier (such as proficiency bonus plus Strength or Dexterity), and compare the total with the target's Armor Class (AC).
  • Ability checks: roll the d20 and add the relevant ability or skill modifier (such as Perception, Stealth or Athletics) to beat the Dungeon Master's Difficulty Class (DC).
  • Saving throws: roll the d20 to resist spells, traps or poisons.
  • Damage: switch to the die your weapon or spell uses (D4, D6, D8, D10 or D12) and roll it.

Natural 20s, Critical Hits & Table Adjudication

A “natural 20” means the d20 itself landed on 20, before any modifiers are added.

  • Attack rolls: in both the 2014 Fifth Edition rules and the revised 2024 rules, a natural 20 on an attack roll always hits and is a critical hit: you roll the attack's damage dice twice and add modifiers once. A natural 1 on an attack roll always misses.
  • Ability checks and saving throws: under the official Fifth Edition rules, a natural 20 does not automatically succeed on an ordinary ability check or saving throw; the total must still meet the DC. Death saving throws have a special rule: a 20 restores 1 hit point. Many tables use their own house rules, so check with your Dungeon Master.
  • What WheelShuffle does: the simulator displays the rolled number and logs it in your history. It does not apply game rules, decide hits or misses, or show critical-hit messages. Players apply their own modifiers and rules.

Rolling Advantage and Disadvantage with Roll History

With advantage you roll the d20 twice and keep the higher result; with disadvantage you keep the lower. Roll the D20 once, roll it again, compare the two newest results in Roll History, and take the higher or lower number. Across two independent d20 rolls, the chance of at least one natural 20 rises from 5% to 9.75%.

Single-Die Rolling vs. Dice Notation & Modifiers

Character sheets write dice in notation such as 2d6+3 or 1d20+5. WheelShuffle rolls one die per roll and does not read notation or add modifiers. To resolve 2d6+3, select D6 and roll twice, add the two results from Roll History, then add 3 yourself.

Dice Probability & Odds Breakdown

On a fair die with N sides, every face has the same chance of landing face up: 1 divided by N.

Chance of rolling one specific number on each supported die
DieFormulaSingle-face probabilityPercentageProbability of any other face
D41/40.250025.00%75.00%
D61/60.166716.67%83.33%
D81/80.125012.50%87.50%
D101/100.100010.00%90.00%
D121/120.08338.33%91.67%
D201/200.05005.00%95.00%

Theoretical Sums for Two D6 Dice

Many board games, such as Catan and Monopoly, move by the total of two six-sided dice. Two independent d6 rolls give 6 × 6 = 36 equally likely combinations, but the totals from 2 to 12 are not equally likely. A 7 is the most common theoretical total because six pairs make it (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), a probability of 6/36, about 16.67%. A 2 or a 12 can each be made only one way, 1/36 or about 2.78%.

This is an educational mathematical example, not a WheelShuffle feature: the simulator rolls one die at a time and does not roll or sum two dice simultaneously. To play a two-dice game, roll the D6 twice and add the two numbers from Roll History.

Independence, Streaks & the Law of Large Numbers

Every roll is independent: the die has no memory of past results. If a d20 lands on 20, the chance of a 20 on the next roll is still exactly 1 in 20 (5%). Streaks and repeated numbers are normal in random sequences.

As the number of independent rolls increases, observed frequencies tend to approach their theoretical probabilities. They do not have to move steadily closer after every additional roll, and short-term deviations do not force opposite results to “balance out.”

Randomness Implementation & Privacy

Web Crypto API, Rejection Sampling & Fallback

  • Web Crypto API: where your browser supports it, WheelShuffle uses crypto.getRandomValues to generate random numbers.
  • Rejection sampling: values outside an evenly divisible range are discarded and redrawn before a number is mapped to a die face, which avoids modulo bias.
  • Fallback: in browsers where the Web Crypto API is unavailable, the code falls back to JavaScript's Math.random(), which is not cryptographic.
  • Result before animation: the result is selected before the tumbling animation begins; the animation shows the outcome rather than deciding it.

Session Memory & File Exports (PDF, CSV, XLSX, TXT)

  • In-browser history: rolls are kept only in temporary browser memory. Refreshing or leaving the page clears your history; rolls are not saved to an account or sent to WheelShuffle's servers.
  • Export formats: to keep a session, open the export menu above Roll History and download it as a PDF, CSV, XLSX or TXT file.
  • What an export contains: each roll's sequential round number and its outcome. Exports do not record which die type produced each roll, so if you switch from a D20 to a D6 mid-session, the file lists the numbers without die labels.

For a quick 50/50 choice, a coin flip is simpler; for a yes-or-no answer, try the yes or no wheel; and when a game night or class needs groups, split everyone into random teams.

Frequently Asked Questions