Quick answer: enter your lowest and highest numbers and press Generate. Each whole number in the range, including both ends, has an equal chance of 1 in (max − min + 1). Open More options to draw several numbers, block repeats or sort the results.
Popular ranges
Each preset page explains the odds and common uses for that range:
- Random Number Generator 1–100: Get a random number from 1 to 100, where every number has an equal 1 in 100 chance. Draw several at once, with or without repeats.
- Random Number Generator 1–10: Pick a random number from 1 to 10 with an equal 10% chance for each, for ratings, turns and quick games.
- Random Number Generator 1–20: Pick a random number from 1 to 20, each with a 5% chance: a quick stand-in for a twenty-sided die or a class of twenty.
- Random Number Generator 1–6: Pick a random number from 1 to 6, the same odds as one fair six-sided die. Roll several at once and see the total.
- Random Number Generator 1–4: Pick a random number from 1 to 4, each with a 25% chance: handy for picking one of four teams, options or answers.
Examples
| You want to… | Min | Max | Options |
|---|---|---|---|
| Pick a winning ticket from 250 sold | 1 | 250 | 1 number |
| Choose 6 different numbers for a classroom bingo board | 1 | 30 | 6 numbers, no repeats, smallest first |
| Simulate a temperature change | −10 | 10 | 1 number (negatives work) |
| Random order for 12 presenters | 1 | 12 | 12 numbers, no repeats |
| Pick a random year in the 1900s | 1900 | 1999 | 1 number |
How to use it
- Type the lowest number in Min and the highest in Max. Negative numbers are fine.
- Press Generate, or press Enter in any box.
- For more than one number, open More options and set How many numbers. Tick No repeats to make every number different, and choose an order.
- Use Copy to copy the results (one per line), or download the session’s history as a CSV file.
- Present switches to full screen and hides the settings, which is useful on a classroom projector.
What people use it for
- Fair choices: number the options, then let the generator decide.
- Teaching: probability experiments, picking question numbers, choosing who answers next.
- Games: a stand-in for dice of any size, or setting a secret target number.
- Sampling: picking rows to spot-check from a numbered list, with no repeats.
How the numbers are chosen
Your browser’s cryptographic random source (crypto.getRandomValues) supplies 32-bit random values.
We map them onto your range with rejection sampling: any value that would make some numbers slightly
more likely than others is thrown away and redrawn. The common shortcut (value % range) skips this step
and adds a small bias. For No repeats we use a partial Fisher–Yates shuffle, which draws only as many numbers
as you ask for, even from a huge range.
The result is fixed before the rolling animation starts. The animation is decoration and never changes the outcome. Everything runs on your device: nothing you enter or generate is sent to us. More on how it works.
Limits
- Whole numbers only, between about −9 quadrillion and +9 quadrillion (JavaScript’s exact integer range), with a range width of up to 253.
- Up to 10,000 numbers per click. With No repeats, you can’t ask for more numbers than the range contains.
- Fine for games, classrooms and everyday choices. Not certified for lotteries, regulated prize draws or generating security keys.
Questions
Is this random number generator truly random?
It uses your browser’s cryptographically secure generator, which browsers seed from hardware and operating-system entropy. It is unpredictable in practice and far stronger than Math.random(). It is still a computer algorithm, not a physical process such as radioactive decay.
Are the minimum and maximum included?
Yes. A range of 1 to 10 can return 1 or 10, and each of the ten numbers has a 10% chance.
How do I stop numbers repeating?
Open More options and tick No repeats. Each click then returns different numbers. Repeats across separate clicks are still possible; draw everything you need in one click.
Do you store my numbers?
No. History lives in this browser tab only and disappears when you close or reload it. We do not log your inputs or results.
Can I use decimals?
Not yet. This tool returns whole numbers. A separate decimal generator with exact precision is planned.
References
- W3C. Web Cryptography Level 2: Crypto.getRandomValues(). World Wide Web Consortium specification.
- Daniel Lemire. Fast Random Integer Generation in an Interval. ACM Transactions on Modeling and Computer Simulation 29(1), 2019 (discusses modulo bias and rejection).
- Richard Durstenfeld. Algorithm 235: Random permutation. Communications of the ACM 7(7), 1964.
- Donald E. Knuth. The Art of Computer Programming, Volume 2: Seminumerical Algorithms (3rd ed.), §3.4.2. Addison-Wesley, 1997.
Page reviewed 30 November 2026.