Random Number Generator — Pick Numbers in Any Range
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Uses your browser’s cryptographic random generator, so every number is equally likely.
About this tool
Set a range and how many numbers you want, then press Generate. Choose “No repeats” for lottery-style draws where each number can come up only once, and sort the results if you like.
Numbers come from your browser’s cryptographic random generator with an unbiased method, so every number in the range is equally likely — suitable for raffles, classroom picks and games.
Nothing is stored or sent anywhere; each press gives a fresh, independent draw.
Both ends of the range are included: 1 to 100 can return 1 or 100. The range works with negative numbers, and if you type the larger value in “From” the two are swapped for you. Decimals are rounded inward, so 1.5 to 6.5 draws from 2 to 6. You can ask for up to 10,000 numbers at a time, and the results can be copied in one click, separated by commas.
With “No repeats” ticked, which is the default, asking for more numbers than the range contains gives an error. For instance, 10 numbers between 1 and 6 is impossible, since only 6 different numbers fit. Untick it for dice rolls and coin-style draws where repeats are allowed, such as ten rolls of 1 to 6.
Under the hood, an unbiased method means numbers are drawn by discarding the small leftover slice of random values that would favour low numbers, which a plain “random × range” sum or modulo can get wrong. Each draw uses a fresh value from the browser, and the tool cannot be seeded or replayed.
Frequently asked questions
Is this truly random?
It uses the same cryptographic generator browsers use for security keys, which is unpredictable in practice and has no bias between numbers.
Can I draw lottery numbers?
Yes — set the range, the count and tick “No repeats”. For official lotteries, only the organiser’s draw counts.
What are the odds of a particular combination?
For 6 different numbers from 1 to 49, there are 13,983,816 possible combinations, so any one set has a 1 in 13,983,816 chance, and generating a number here does not improve or reduce that.
Are both the lowest and highest numbers possible?
Yes. The range is inclusive at both ends, so a 1 to 10 draw can return either 1 or 10, each with a 10% chance per number when repeats are allowed.
Can I get decimals?
No. The tool returns whole numbers only. If you enter decimal limits, they are narrowed to the whole numbers inside the range.
Why did I get an error about different numbers?
You asked for more unique numbers than the range holds. Widen the range, ask for fewer numbers or untick “No repeats”.