Generate random numbers in any range
Enter the lowest and highest number, choose how many numbers you need, and press Generate. With No repeats each number appears at most once — exactly like drawing numbered tickets from a hat. Both ends of the range are included, so 1 to 100 can give 1 and 100.
- Raffles and ticket draws — set the range to your ticket numbers and draw as many winners as you have prizes.
- Picking a random comment or row — number your entries in a spreadsheet and draw a row number.
- Lottery-style picks — for example 6 unique numbers from 1 to 49, sorted.
- Classrooms and games — choose a page, a question number or who goes first.
Flip a coin, roll dice
For quick decisions, switch to Flip a coin for heads or tails, or Roll dice with up to 20 dice of any number of sides — six-sided for board games, 20-sided for role-playing games, or 2 to 1000 sides for anything else. The total is shown alongside each roll.
How random is it?
Numbers come from your browser's cryptographically secure generator, crypto.getRandomValues. Unlike the everyday Math.random(), it's designed to be unpredictable even to someone who knows the previous results. The tool also uses rejection sampling, a technique that removes the tiny bias simple “modulo” methods introduce, so every number in your range has exactly the same probability.
Coin flips and dice rolls use the same generator: heads and tails are exactly 50/50, and every face of a die is equally likely. Past results never influence future ones — after five heads in a row, the next flip is still 50/50.
Limits
You can generate up to 10,000 numbers at once. Ranges can be as large as about nine quadrillion (253), and negative numbers are allowed. With No repeats, you can't ask for more numbers than the range contains.
Picking names instead of numbers?
Use the wheel of names for a list of people, or the giveaway comment picker to draw winners from social media comments.
Questions and answers
Does the range include both numbers?
Yes. A range of 1 to 10 can produce any of the ten numbers, including 1 and 10.
Can I generate numbers without duplicates?
Yes — keep No repeats ticked. Each number in the range can then appear only once in the results.
Is a coin flip here really 50/50?
Yes. Each flip uses a cryptographically secure random bit, so heads and tails are equally likely and every flip is independent of the last.
Can I use it for an official lottery?
The randomness is strong, but official lotteries and regulated prize draws usually require certified equipment or an independent supervisor. For giveaways, classrooms and games it's ideal.
Are my results saved?
Only in the history list on this page while it's open. Nothing is stored or sent anywhere.