Random Number / Dice Roller
Roll dice or generate a random number in a range.
Input sheet
DIY at your own risk. Calcora's calculators and guides are general estimates and information only — not professional, engineering, legal, or safety advice. Always verify local building codes and permit requirements, and hire a licensed pro for electrical, gas, plumbing, structural, or any work you're not fully comfortable doing yourself.
Whether you need a tabletop game roll, a fair coin flip, or a random pick from a range, this tool generates uniform random integers between your minimum and maximum and reports the total.
How it works
Generates uniform random integers in your range; the headline is the sum, with each roll shown.
Each result is an independent, uniformly distributed integer in your chosen range, so every value is equally likely and one roll never influences the next. With more than one roll, the headline shows the sum and lists each individual result.
If you enter the maximum below the minimum, the tool swaps them so the range still makes sense, and it shows the average per roll alongside the total.
Each roll = minimum + floor(random × (maximum − minimum + 1)); the headline is the sum of all rolls, with average = sum ÷ count.
Worked examples
Rolling two six-sided dice (min 1, max 6, count 2). → A total from 2 to 12 — for instance two rolls of 4 and 5 give a total of 9, average 4.5.
Each die is uniform 1–6; the sum and per-roll average update on every run.
Picking one number from 1 to 100. → A single uniform integer such as 73.
min + floor(random × 100) covers every value 1 through 100 equally.
Tips & gotchas
- Re-run to roll again — each result is fresh and independent, just like rolling physical dice.
- For a coin flip, set the range to 1–2 (heads/tails) and roll once.
- To draw without repeats (like a raffle), roll one at a time and skip any number you have already drawn.
- This is for games and casual picks, not cryptographic use — security-sensitive randomness needs a dedicated secure generator.
FAQ
Are the results truly random?
They use the browser's built-in pseudo-random generator, which is statistically uniform and fine for games and everyday picks, though not suitable for cryptography or gambling stakes.
Can I simulate dice with more or fewer sides?
Yes — set the minimum to 1 and the maximum to the number of sides. A 20-sided die is min 1, max 20.
Does a previous roll affect the next one?
No. Each roll is independent, so a run of high numbers does not make a low number 'due' — that is the gambler's fallacy.
Related calculators
Unit Price Calculator · Dog Age Calculator · Age Calculator · Date Difference Calculator · Fuel Cost Calculator