Random Number Generators and Dice
These random number generators and dice cover every shape a number takes: a single number, a roll of up to 20 dice, a coin, a card, a lottery line, a date. Each outcome in a range has exactly the same chance.
Most random decisions come down to a number. Who goes first is a number from 1 to 4, a raffle is a set of numbers without repeats, and a dice roll is a number from 1 to 6. A coin is a number from 1 to 2 with nicer names, and a card is one of 52.
Which random number tool to use
- Any range, any quantity up to 10,000, with or without repeats: the random number generator. Ready-made ranges open with the numbers filled in, such as 1 to 10 and 1 to 100.
- Up to 20 dice from four-sided to hundred-sided, added up: the dice roller.
- Heads or tails with a running score: the coin flip.
- A line in the format of a real game: the lottery number generator and the Powerball generator.
- Strings of digits or letters, and points on the calendar or the clock: the sequence generator and the date, time and year generators listed below.
How every number tool draws
Whichever tool you use, the draw is made the same way: an unbiased whole number from the browser's cryptographic generator, with nothing stored or sent. Every outcome in the range gets the same chance, which statisticians call a discrete uniform distribution.
What changes between tools is only how many outcomes there are. The chart shows the odds of one particular result on each, from a coin to a Powerball jackpot.
Start here
- Random Number GeneratorWhole numbers in any range, with or without repeats, sorted if you like.
- Dice RollerRoll 1 to 20 dice, from D4 to D100, and see the total.
- Coin FlipHeads or tails, with a running count of your flips.
- Lottery Number GeneratorA random lottery line for common games or your own format.
All number tools
- Coin FlipHeads or tails, with a running count of your flips.
- Dice RollerRoll 1 to 20 dice, from D4 to D100, and see the total.
- Lottery Number GeneratorA random lottery line for common games or your own format.
- Powerball Number GeneratorFive numbers from 1 to 69 plus a Powerball from 1 to 26.
- Random Card GeneratorDraw cards from a 52-card deck, with or without jokers.
- Random Date GeneratorA random date between two dates, in the format you choose.
- Random Height GeneratorRandom heights in feet and inches or centimeters.
- Random Number GeneratorWhole numbers in any range, with or without repeats, sorted if you like.
- Random Number Generator 1 to 10A number from 1 to 10, each with a 10% chance.
- Random Number Generator 1 to 100A number from 1 to 100, each with a 1% chance.
- Random Number Generator 1 to 31, 2 or 3, each with a one-in-three chance.
- Random Number Generator 1 to 41, 2, 3 or 4, like a four-sided die.
- Random Sequence GeneratorRandom strings of digits, letters, hex, binary or your own characters.
- Random Time GeneratorA random time of day, 12-hour or 24-hour.
- Random Year GeneratorRandom years between a start and an end year.
Random Number Generators and Dice: FAQ
Are these numbers truly random?
They are cryptographically secure pseudo-random numbers from your browser, not measurements of a physical process. For games, draws and classroom use the difference has no practical effect: the numbers cannot be predicted and every outcome has the same chance. How our randomness works explains what that means.
Do lottery number generators improve my chances?
No. Every combination has the same chance of being drawn, however it was chosen. A generator saves you from choosing and avoids popular patterns such as birthdays, which matters only for how many people you might share a prize with.
Why did I get the same number twice in a row?
Because each draw is independent. A die has no memory, and neither does the generator. If you need every result to be different, switch on No repeats in the number generator.
Sources
- Wikipedia: Discrete uniform distribution — the “every outcome equally likely” rule all the number tools follow (checked October 16, 2026)