# Dice Roller & Random Number Generator (Plus Coin Flip) Source: https://www.albert.io/blog/dice-roller/ · Updated November 30, 2026 ## The tool Dice Roller & Random Number Generator: Roll up to 10 dice, pick random numbers with no repeats, or flip a coin. It runs in the browser on https://www.albert.io/blog/dice-roller/ (free, no account). Nothing typed into it is sent to Albert. Roll up to 10 dice at once, draw random numbers with or without repeats, or flip a coin, all in one free tool built for classrooms, probability lessons and game nights. ## How to use the dice roller 1. **Pick a mode.** Choose *Dice*, *Number* or *Coin flip* at the top of the tool. 2. **Set it up.** For dice, choose how many (1 to 10) and the type (d4, d6, d8, d10, d12 or d20). For numbers, type a min, a max and how many you want, then tick *No repeats* or *Sort smallest first* if you need them. For coins, choose how many to flip. 3. **Press Roll, Generate or Flip.** The dice shake for a moment and land on the result, with the total underneath. 4. **Project it.** Press *Full screen* so the whole class can see. Press Esc to come back. 5. **Check your history.** Your last 20 results stay listed under the tool in this browser, so you can look back at who got which number. ## Worked example Say a game asks you to roll two six-sided dice. Set *How many dice* to 2 and *Type of die* to d6, then press Roll. The dice land on **4** and **1**, and the tool shows **Total: 5**. Your history line reads *2d6: 4, 1 (total 5)*. How likely was that 5? Two dice have 6 × 6 = 36 equally likely pairs, and four of them add to 5: (1, 4), (2, 3), (3, 2) and (4, 1). So the chance of rolling a total of 5 is 4/36, which simplifies to 1/9, or about 11.1%. ## How dice probability works Dice are the classic model for probability because every face is equally likely. A fair die with *n* sides lands on each face with probability 1/*n*, and no roll remembers the one before it. That one idea is enough to work out almost everything a dice game, a statistics class or a board game will throw at you. ### One die: every face is equally likely The tool's six die types cover every standard tabletop shape. Here is what you can expect from each. | Die | Faces | Chance of any one face | Average roll | | --- | --- | --- | --- | | d4 | 1 to 4 | 1/4 = 25% | 2.5 | | d6 | 1 to 6 | 1/6 ≈ 16.7% | 3.5 | | d8 | 1 to 8 | 1/8 = 12.5% | 4.5 | | d10 | 1 to 10 | 1/10 = 10% | 5.5 | | d12 | 1 to 12 | 1/12 ≈ 8.3% | 6.5 | | d20 | 1 to 20 | 1/20 = 5% | 10.5 | The average roll, also called the **expected value**, is (*n* + 1)/2. For a d6 that is (6 + 1)/2 = 3.5. You can never actually roll a 3.5, but if you rolled thousands of times and averaged the results, you would land very close to it. ### Two or more dice: totals are not equally likely This is where most people's intuition slips. Each die is fair, but the *totals* are not. With two d6, there is only one way to roll a 2 (1 and 1) but six ways to roll a 7. Count the pairs and divide by 36: | Total | Ways | Probability | | --- | --- | --- | | 2 | 1 | 1/36 ≈ 2.8% | | 3 | 2 | 2/36 ≈ 5.6% | | 4 | 3 | 3/36 ≈ 8.3% | | 5 | 4 | 4/36 ≈ 11.1% | | 6 | 5 | 5/36 ≈ 13.9% | | 7 | 6 | 6/36 ≈ 16.7% | | 8 | 5 | 5/36 ≈ 13.9% | | 9 | 4 | 4/36 ≈ 11.1% | | 10 | 3 | 3/36 ≈ 8.3% | | 11 | 2 | 2/36 ≈ 5.6% | | 12 | 1 | 1/36 ≈ 2.8% | The probabilities rise to a peak at 7 and fall away evenly on both sides. Add a third die and the shape starts to look like a bell curve, which is a first glimpse of why sums and averages of random values tend toward a normal distribution. Expected values add, too. The average total for any number of dice is the number of dice times the average for one die. Three d6 average 3 × 3.5 = 10.5, and two d20 average 2 × 10.5 = 21. That rule, that the mean of a sum is the sum of the means, is exactly what you use when [combining random variables](https://www.albert.io/blog/ap-statistics-combining-random-variables-2/) in AP® Statistics. ### Why 60,000 rolls look so even: the law of large numbers Roll a d6 six times and you might see three 4s and no 6 at all. That isn't a broken die. Short runs are lumpy. The **law of large numbers** says that as the number of trials grows, the share of rolls landing on each face gets closer and closer to the true probability. The tool's *Roll it 60,000 times* button lets you watch this happen. With 60,000 rolls of a d6, each face should come up about 10,000 times, or 16.67% of the time. The typical gap from that is only about 0.15 percentage points, so a fair roller keeps every face well within 1 point of 16.67%. If one face came up 20% of the time over 60,000 rolls, you would have strong evidence that something was off. This is the same reasoning behind [estimating probabilities using simulation](https://www.albert.io/blog/estimating-probabilities-using-simulation-ap-statistics-review/): run a random process many times, and the long-run relative frequency estimates the probability. ### Random numbers with and without repeats The *Number* mode treats every whole number from min to max as one face of a giant die. From 1 to 100, each number has a 1 in 100 chance on each draw. - **Repeats allowed** works like rolling the same die again. Every draw is independent, so the same number can come up twice. This is *sampling with replacement*. - **No repeats** works like pulling numbered slips from a hat and keeping them out. Each draw picks from the numbers that are left, so all your results are different. This is *sampling without replacement*, the method behind a simple random sample. Without repeats, the count you ask for can't be bigger than the range. There are only 5 whole numbers from 1 to 5, so asking for 6 different ones is impossible, and the tool says so instead of quietly repeating one. ### Coin flips and the gambler's fallacy A coin flip is a two-sided die: heads and tails each have probability 1/2 on every flip. After five heads in a row, the chance of heads on the next flip is still exactly 1/2. Believing tails is "due" is called the **gambler's fallacy**. The coin has no memory. Streaks are also more common than people expect. Five heads in a row has a 1/2 × 1/2 × 1/2 × 1/2 × 1/2 = 1/32 chance starting from any given flip, so in a long run of flips you should expect to see a few. Flip 100 coins in the tool and count the longest streak. It's usually longer than students guess. ### How the tool makes its random numbers Every roll uses your browser's built-in secure random number generator, `crypto.getRandomValues`, the same source browsers use for encryption keys. Each value is turned into a face by splitting the range into equal slices, so no face gets a bigger slice than another. Nothing you roll or type is sent to Albert. ### Ways to use it in class - **Probability labs.** Have students predict the distribution of two-dice totals, then compare their prediction to 100 rolls and to the 60,000-roll check. - **Random sampling.** Number your class list and draw a sample with *No repeats* to show how a simple random sample is chosen. - **Review games.** Roll a d20 to choose the next practice question, or a d6 to pick a category. - **Fair turns.** Draw random numbers with no repeats to set a presentation order everyone can see on the projector. For more practice with these ideas, read our [Introduction to Probability AP® Statistics review](https://www.albert.io/blog/introduction-to-probability-ap-statistics-review/) and keep the [AP® Statistics cheat sheets](https://www.albert.io/blog/ap-statistics-cheat-sheets/) handy for the formulas. ## FAQ ### Is this dice roller really random? Yes. Every roll uses your browser's built-in secure random number generator (crypto.getRandomValues), the same kind used for passwords. You can test it yourself: the Roll it 60,000 times button shows each face coming up about equally often. ### How do I generate random numbers with no repeats? Choose Number, enter your min and max, set how many you want and tick No repeats. Each number in the range can come up at most once. If you ask for more numbers than the range holds, the tool tells you instead of repeating. ### What are the odds of rolling a 7 with two dice? 6 in 36, or 1 in 6. Of the 36 equally likely pairs from two six-sided dice, six add to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), which makes 7 the most common total. ### Is a coin flip exactly 50/50? In this tool, yes: heads and tails each have a 1 in 2 chance on every flip, and earlier flips never change the next one. Over a handful of flips you'll still see streaks, which is normal. ### Can I use it on a projector? Yes. Choose Full screen and the dice, numbers or coin fill the screen. Press Esc to come back. Your last 20 rolls stay in this browser only.