EditSafely

Throw a Dice

Roll one or more dice and get random dice numbers.

Runs on your device, nothing uploaded

Presets:
Dice notationOptional. Overrides Dice and Sides, e.g. d20 or 3d8+2.
Sides
Dice
Separator

Output

Generating…

This runs entirely on your device

Throw a Dice is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. Nothing is requested from a server: the result is decided by your browser's secure generator before any animation starts.

  • No server involved
  • Generated on your device
  • Works offline once loaded
  • Nothing stored or logged

How to use Throw a Dice

  1. 1. Pick the dice. Tap a Sides chip such as d6 or d20, or type any number of sides, then set Dice to how many to throw at once. Or type Dice notation like 2d20+1, which also adds the modifier to the total. The page starts with two six-sided dice.
  2. 2. Roll. Press Roll again, or Space. Up to 12 dice show as faces, with pips for d6, and the total in large type; the dice tumble briefly unless your system asks for reduced motion.
  3. 3. Copy the numbers. Copy gives the rolled values joined by Separator. For more than 12 dice the faces give way to a chart of how often each value came up, with the total and mean. Previous results lists your last rolls.

When to use Throw a Dice

Throw a Dice rolls one or more virtual dice with any number of sides and returns the results instantly, replacing a physical die when you need a quick random number within a fixed range. It works for standard six-sided dice as well as the unusual sided dice used in tabletop games.

  • Rolling for a tabletop RPG session. A game master needs a d20 attack roll or a d6 damage roll during a remote session where no physical dice are handy. Set the sides and roll count to match the game's rules.
  • Running a quick random simulation. You are testing a probability idea, like how often doubles come up on two six-sided dice, and want a batch of rolls to eyeball the distribution without writing code.
  • Deciding something casually with the group. Friends need to settle who pays for dinner or who picks the movie, and a quick dice roll on a shared screen settles it faster than passing a physical die around.
  • Generating random numbers within a small range. You need a bounded random integer, such as a number from 1 to 100, and setting Sides per die to 100 gives you exactly that using the same rolling mechanic.

Examples

Ten six-sided rolls

One possible result

4 6 3 6 1 4 2 3 5 1

One twenty-sided die

One possible result

6

Two d20 plus one

One possible result

14 3

About the Throw a Dice tool

Throw a Dice is a free online tool that works entirely inside your web browser. Roll one or more dice and get random dice numbers. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 120 Random utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 4 settings, including Dice notation, Sides, Dice and Separator, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Is Throw a Dice free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Does the generator send anything to a server?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How do I get a different result?

Press the button under the result to generate again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click Copy button, and Download saves the result as a file.