Skip to content
Calcora

Random Number / Dice Roller

Roll dice or generate a random number in a range.

Input sheet

Browse DIY guidesDo the project yourself, step by step

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

Tips & gotchas

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