# Coin Flip and Dice Roller

> Free coin flip with heads/tails tally and a dice roller with d4, d6, d8, d10, d12 and d20, up to 6 dice, totals and roll history.

Flip an animated coin with a running heads/tails tally, or roll up to 6 dice with any standard size from d4 to d20, with totals and a roll history.

*Interactive tool: enter your values at https://toollantern.win/coin-flip-dice-roller/ and results update instantly in your browser.*

## What this tool does

Two classic randomizers in one page. The coin flip animates, lands on heads or tails, and keeps a running tally of your session. The dice roller throws 1 to 6 dice of any standard tabletop size (d4, d6, d8, d10, d12, d20), shows each die, totals them, and logs every roll in a history list.

## How the randomness works

Both tools draw from **crypto.getRandomValues**, the browser's cryptographic random generator. The coin is a single fair bit (50/50); each die is a uniform draw from 1 to its number of sides, using rejection sampling so no face is favored. Rolls are independent: the dice have no memory of previous results.

## Worked example

Rolling **2d6** (two six-sided dice) gives faces like **4 and 2**, for a total of **6**. The most common total on 2d6 is 7, which comes up about 1 time in 6, because six of the 36 combinations make it.

## Tabletop uses

The d20 is the classic Dungeons and Dragons die for attacks and checks; d4, d8, d10 and d12 cover most weapon and spell damage. Rolling several dice at once with the total shown matches how damage rolls work at the table.

## Limitations

The history keeps your last 20 rolls on this page only; it resets when you reload. For games that need witnessed or certified randomness, use physical dice or a regulated system.

## Frequently asked questions
### Is the coin flip really 50/50?

Yes. Each flip is one fair bit from the browser's cryptographic random generator, independent of every previous flip. The tally lets you watch heads and tails even out over many flips.

### Which dice can I roll?

d4, d6, d8, d10, d12 and d20, the standard tabletop set. Choose the die type, set 1 to 6 dice, and press Roll.

### How does the roll history work?

Every roll is logged with its time, die type, dice count, individual faces and total. The list keeps your 20 most recent rolls on this page.

### Can I roll multiple dice at once?

Yes, up to 6 dice per roll. Each die is rolled independently and the total is shown, which is how damage rolls work in tabletop games.

### What does 2d6 mean?

It is tabletop shorthand: 2 dice with 6 sides each. Select d6, set the number of dice to 2, and roll.

---
Interactive version: https://toollantern.win/coin-flip-dice-roller/
