Random Number Generator
Pick a range and how many numbers you need, then generate them instantly.
Processed on your device — nothing is sent anywhere.
How it works
- Enter the minimum and maximum values for your range.
- Choose how many numbers to generate and toggle unique or sorted output if needed.
- Click Generate, then copy the results with one click.
Frequently asked questions
- How random are the numbers?
- The tool uses your browser’s crypto.getRandomValues, a cryptographically secure random source, with rejection sampling to avoid modulo bias. Every number in the range has exactly the same chance of appearing.
- What does the unique option do?
- With unique enabled, no number appears twice in the result, like drawing lottery balls without putting them back. This requires the range to contain at least as many values as the amount you request.
- Are the minimum and maximum values included in the results?
- Yes, the range is inclusive on both ends. Setting min to 1 and max to 10 means both 1 and 10 can appear, giving ten possible values in total. If you want strictly-between numbers, simply narrow the bounds by one on each side.
- Can I use this to pick lottery numbers?
- Yes — set the range to match your lottery, for example 1 to 49, request six numbers, and enable both unique and sorted. That reproduces a real draw, where each ball is removed after being picked. Randomly chosen numbers have the same odds as any other combination but avoid the popular date-based picks that split jackpots.
- Is anything sent to a server?
- No. The numbers are generated entirely on your device using the Web Crypto API built into your browser. Nothing you enter or generate ever leaves your computer.
About this tool
This random number generator produces integers in any range you choose. Set a minimum and maximum, tell it how many numbers you want, and click Generate — the results appear immediately and a single click copies them all. Two toggles refine the output: unique guarantees no repeats within a draw, and sorted arranges the results in ascending order instead of the order they were drawn.
Under the hood the tool calls crypto.getRandomValues, the cryptographically secure random source built into every modern browser, rather than the weaker Math.random. Rejection sampling removes the subtle bias that naive modulo arithmetic introduces, so every value in your range — endpoints included — has exactly the same probability. Generation happens entirely on your device with no network requests, so nothing you enter or produce is ever transmitted.
The range-and-count model covers a wide spread of tasks. Draw a single number between 1 and 100 to settle a bet or pick a giveaway winner by entry number. Generate six unique sorted numbers from 1 to 49 to fill in a lottery ticket. Roll dice by setting the range to 1–6 and the count to how many dice you need — repeats allowed. Teachers use it to call on seat numbers, and developers grab quick batches of test values without writing a script.
A couple of practical notes. When unique is on, the range must contain at least as many values as you request — you cannot draw ten distinct numbers from 1 to 5. And if the order of drawing matters, such as assigning first, second and third place, leave sorting off so the results keep their draw order; sorted output is better when you just need a tidy set.