How to use the random number generator
- Enter the smallest and largest number you want. Both ends are included.
- Enter how many numbers to draw.
- Tick No repeats to draw like a raffle, where each number can only come up once. Untick it to draw like dice, where repeats can happen.
- Click Generate for a new set.
How the numbers are picked
The generator uses your browser's built-in cryptographic random source (Web Crypto), which is designed to be unpredictable. It uses rejection sampling, so every number in the range has exactly the same chance of being picked, with no bias toward low or high values.
Example
For a number from 1 to 100, each number has a 1 in 100 chance, or 1%. Drawing 6 numbers from 1 to 49 with no repeats can produce 13,983,816 different combinations, which is why lottery jackpots are so hard to win.
Good uses
- Picking a raffle or giveaway winner by ticket number
- Choosing a random student, question or team order in class
- Rolling dice: set 1 to 6 and turn off No repeats
- Sampling rows from a list for a quick quality check
The numbers are generated on your device and are not recorded. For official prize draws, follow the rules in your area, which may require an independent witness or service.
Frequently asked questions
Is this random number generator truly random?
It uses the browser's cryptographically secure random source, which is suitable for raffles and games. Every number in the range has the same chance.
How do I pick a random number between 1 and 10?
Set the minimum to 1, the maximum to 10 and how many numbers to 1, then click Generate.
Can I generate numbers without repeats?
Yes. Keep No repeats ticked. You can draw up to as many numbers as there are in the range.
How do I simulate rolling two dice?
Set the range to 1 to 6, ask for 2 numbers and untick No repeats, so both dice can land on the same number.
Can I use negative numbers?
Yes. The minimum and maximum can be negative, as long as the minimum is smaller than the maximum.
This tool runs entirely in your browser. Nothing you type or paste is stored or sent to our server.
Was this page helpful?
Thanks for telling us.
What was missing or wrong? Email us and we will fix it.