Custom Dice Roller Calculator - Roll Mixed Polyhedral Dice
Use this custom dice roller to roll 1 to 15 polyhedral dice in one batch. Pick each die's face count and read every face plus the total sum and expected value.
Custom Dice Roller Calculator
Results
Individual Dice Faces
| Die | Faces | Roll |
|---|
Each row lists the polyhedral shape and the face it showed in this batch.
What Is the Custom Dice Roller Calculator?
The custom dice roller calculator is a browser tool that rolls 1 to 15 polyhedral dice at once, picks the face count per die, and returns the individual face values, the total sum, and the expected value.
- • Tabletop role-playing sessions: Roll a D&D attack with 1d20 plus modifiers, ability scores with 4d6, or a save with 2d10 plus 1d4 without hunting for the right physical die.
- • Board game nights without a full dice tray: Replace lost or short physical dice for Catan, King of Tokyo, or Yahtzee and read the total alongside individual face values.
- • Probability and statistics class demos: Show students the expected value of a pool and the theoretical minimum and maximum totals for any mix of polyhedral shapes.
- • Monte Carlo simulation warm-ups: Use the seeded xorshift generator to reproduce a specific batch, which makes it easy to share a Monte Carlo sample with a study group.
Each die in the pool can use a different face count, and the supported shapes range from a tiny 3-sided prism up to a 120-faced disdyakis triacontahedron. The calculator records every individual face so you can read the roll the way you would on a real table, not as a single opaque total.
When you only need a pair of standard six-sided dice, the 2 Dice Roller Calculator keeps the same click-to-roll workflow but focuses on the classic 36-outcome probability table.
How the Custom Dice Roller Calculator Works
Each die in the pool rolls independently using a seeded xorshift32 generator. The total is the sum of every face, and the theoretical expected sum is the sum of (sides + 1) divided by 2 across the pool.
- N: Number of dice in the batch, integer from 1 to 15
- sides_i: Face count of the i-th die, chosen from the supported shape list
- face_i: Independent uniform integer from 1 to sides_i drawn for die i
- Total: Sum of every face in the batch
- Expected sum: Sum of (sides_i + 1) / 2, the long-run average of the total
The minimum possible sum is N, the maximum is the sum of the largest face on each die, and the expected value sits at the midpoint of those two bounds because the uniform distribution on 1..sides is symmetric.
Mixed D&D attack pool, 1d20 + 1d6 + 1d4
dieCount = 3, faces = 20, 6, 4, seed = 22
Minimum total = 1 + 1 + 1 = 3, maximum = 30, expected = (20 + 1)/2 + (6 + 1)/2 + (4 + 1)/2 = 16.5.
Sample batch with seed 22 produces faces 12, 2, 3, so Total = 17. That sits 0.5 above the expected value and well inside the 3 to 30 range.
The 12 on the d20 reads as a solid hit on the attack roll, and the 2 on the d6 plus 3 on the d4 sit below the pool's long-run mean of 16.5.
Settlers of Catan robber trigger, 2d6
dieCount = 2, faces = 6, 6, seed = 272
Two standard six-sided dice, so minimum = 2, maximum = 12, expected = 7, standard deviation about 2.42. A sum of 7 is the single most likely ordered pair total, with 6 favorable outcomes out of 36 (about 16.67%).
Sample batch with seed 272 returns faces 4, 3, so Total = 7. That sum is exactly the 2d6 total that activates the robber in Settlers of Catan.
The per-die readout matters because the robber dice are rolled individually on the physical board, so each face value is visible before the total is called.
According to Wolfram MathWorld, the expected value of a single fair n-sided die is (n + 1) divided by 2 and the variance is (n squared minus 1) divided by 12.
When the question shifts from a single roll to the exact probability of a sum, the Two Dice Probability Calculator returns the count of favorable ordered pairs divided by 36 for any sum from 2 to 12.
Key Concepts Explained
Four short ideas anchor the rest of the page. They cover the math behind a single die, the way multiple dice combine, and the role of the seed.
Uniform distribution
A fair die of n sides draws each integer from 1 to n with probability 1/n. The custom dice roller uses this distribution for every die in the batch.
Expected value of a die
The long-run average of one die is (n + 1) / 2. For a d6 that is 3.5, for a d20 it is 10.5, and for a d100 it is 50.5.
Sum of independent random variables
The expected sum of N independent dice is the sum of the individual expected values, and the variance of the total is the sum of the individual variances.
Seeded pseudo-random generator
The page uses an xorshift32 generator so a specific seed always reproduces the same sequence, which makes Monte Carlo samples shareable by one integer.
For a deeper view of how independent events combine, the Probability Calculator lets you compute AND, OR, and conditional probabilities with the same uniform-draw assumption.
How to Use This Calculator
Use the custom dice roller in five steps. The defaults already roll a standard D&D attack pool, so most users only adjust the face list.
- 1 Set the number of dice: Type how many dice you want in the batch into the Number of Dice box. The default of 5 covers most tabletop needs.
- 2 List the face counts for each die: Type the face count for every die into the Face Count per Die box, separated by commas. Use 4, 6, 8, 10, 12 for a D&D attack pool, or a single number such as 6 to roll that shape N times.
- 3 Pick a seed if you want to reproduce the roll: Leave the seed at the default 42 for a casual batch or change it to any integer between 0 and 999999 so the same sequence can be replayed later.
- 4 Read the results panel: The Total Sum tile shows the sum of every face. The other rows show the minimum and maximum possible sums, the expected sum, and the mean face value of this batch.
- 5 Audit the individual faces: Scroll to the per-die face table below the inputs. The list is labelled Die 1, Die 2, and so on so a D&D player can read the attack roll and the damage roll in the same view.
For a D&D greatsword attack with a +5 modifier, set dieCount to 2, faces to 20, 6 (1d20 + 1d6 for damage), and leave the seed alone. The total sum plus your +5 modifier gives the attack and damage.
When the next question is whether the attack hit and the damage roll both landed in target ranges, the And Probability Calculator handles the joint probability without forcing you to enumerate each pair by hand.
Benefits of Using This Calculator
Five concrete reasons this custom dice roller earns its place next to your physical dice tray or your probability textbook.
- • Mixed-shape pools in one click: Roll a d20, a d6, and a d4 in a single batch instead of grabbing three dice and adding the results by hand.
- • Full per-die readouts: Every individual face is visible, so a D&D player can read the raw d20 and the damage roll separately instead of treating the total as opaque.
- • Expected value alongside the roll: The expected sum is computed for your exact pool, which lets you compare a single batch to its long-run average without a statistics book.
- • Reproducible via seed: A specific seed always produces the same dice sequence, so a study group or a teacher can share a Monte Carlo sample by sharing one integer.
- • Browser-only, no install: Runs on any modern browser including Chromebooks and tablets, so it works in a classroom, a board-game cafe, or on a phone at the table.
For a single independent event with only two outcomes, the Coin Flip Probability Calculator handles the uniform-coin counterpart to this dice roller.
Factors That Affect Your Results
Five factors drive how the displayed total relates to its theoretical range, and three caveats keep the result honest.
Pool size
Larger pools shrink the standard deviation relative to the range. A single d20 has a standard deviation of about 5.84 against a range of 19, while ten d6 have a standard deviation of about 5.40 against a range of 50.
Face count distribution
A pool of identical d6 has the tightest ratio of variance to mean-squared, while a pool that mixes d20s with d3s pulls the range up sharply.
Seed choice
The xorshift32 generator is deterministic, so a fixed seed and a fixed pool always produce the exact same total. Two different seeds produce different batches, and the spread between them is what the law of large numbers describes.
Input parsing
Face counts outside the supported shape list are replaced with a d6 to keep the roll valid, and a list shorter than the dice count is padded with the last listed shape.
Batch timing
A 15-die batch rolls in a few milliseconds. The upper bound on this page keeps the loop responsive on school Chromebooks and older phones.
- • The xorshift32 generator is fast and reproducible but is not cryptographically secure. Use a different tool when true randomness is required, such as cryptographic key generation.
- • The face list is parsed as integers, so face counts that are not in the supported shape list (such as d9 or d11) are silently coerced to a d6 to keep the roll valid. This is the same fallback most online dice rollers use, but it can hide a typo.
- • The calculator models each die as a fair uniform shape. Loaded dice, biased dice, or non-standard label distributions are not modeled.
According to Wikipedia, common polyhedral dice include tetrahedra, cubes, octahedra, dodecahedra, icosahedra, pentagonal trapezohedra, and prisms for odd-sided designs.
When you want to study how a series of independent draws cluster into streaks, the Coin Flip Streak Calculator uses the same uniform-draw idea on a two-sided outcome.
Frequently Asked Questions
Q: How do you use the custom dice roller?
A: Open the calculator, set the Number of Dice between 1 and 15, type the face count for every die into the Face Count per Die box separated by commas, optionally change the seed, and read the Total Sum and the per-die face table in the Results panel.
Q: What dice types can this roller handle?
A: The roller supports 20 shapes: d3, d4, d5, d6, d7, d8, d10, d12, d14, d16, d18, d20, d24, d30, d34, d48, d50, d60, d100, and d120. Face counts outside this list fall back to a d6 so the roll still completes.
Q: What is the expected value of rolling n dice?
A: For one n-sided die the expected value is (n + 1) / 2. For a mixed pool the expected total is the sum of (s_i + 1) / 2 across every die, and the calculator shows this number alongside the actual total so you can see how close a single batch lands to the long-run average.
Q: Can I roll different dice types at the same time?
A: Yes. Type the face count for each die into the Face Count per Die box separated by commas, for example 20, 6, 4 for a D&D greatsword attack pool, and every die rolls independently in a single batch.
Q: Is this custom dice roller fair?
A: Each face is drawn with probability 1 divided by the number of sides, so the underlying uniform distribution is fair. The xorshift32 generator is deterministic and not cryptographically secure, but it is well-suited to tabletop and classroom use.
Q: What is the maximum number of dice I can roll at once?
A: The calculator caps the pool at 15 dice. That upper bound keeps the calculation responsive on school Chromebooks and older phones while still covering the largest D&D and board-game pools in regular use.