Random Number Generator
Generate random whole numbers within an inclusive range.
Choose a minimum, maximum, and quantity. Repeated values are possible. Choose Generate again for a fresh set. Up to 1,000,000 characters. Review the settings before running.
Your result
How to use Random number
- Enter the values you want to calculate and choose the relevant units or settings.
- Review the settings, then choose Run Random number.
- Review the result, then use Copy result or a download link when available.
How Random number works
This random number generator returns whole numbers between a minimum and maximum you choose, with both ends included. Each number comes from your browser's cryptographic random generator with rejection sampling, so every value in the range has an equal chance. You can request up to 10,000 numbers at once, one per line, within a range from −1,000,000,000 to 1,000,000,000. Numbers are drawn independently, so repeated values are possible; it does not produce a list of unique numbers.
Before you start
Decide on the lowest and highest values you want, and remember both are included. Use whole numbers only, with the maximum equal to or larger than the minimum.
A worked example
With a minimum of 1, a maximum of 100 and How many set to 5, one run returned 17, 84, 77, 77 and 74. Notice that 77 appeared twice, because each draw is independent.
What to expect
Generate random whole numbers within an inclusive range. Choose a minimum, maximum, and quantity. Repeated values are possible. Choose Generate again for a fresh set.
Common questions
Are the minimum and maximum included?
Yes. The range is inclusive, so a minimum of 1 and a maximum of 6 can return 1, 6 or anything in between, just like a die. If you set the minimum and maximum to the same value, every result is that value.
Why did I get the same number twice?
Each number is drawn independently, so duplicates are expected, especially in small ranges. Drawing 5 numbers from 1 to 100 repeats a value roughly one time in ten. This tool does not remove duplicates, so for a raffle with unique winners, remove repeats and draw again.
Can I generate decimal or negative numbers?
Negative whole numbers work: any minimum and maximum from −1,000,000,000 to 1,000,000,000 are accepted. Decimals are not. A minimum such as 1.5 is rejected with an error. To get one decimal place, generate whole numbers in a range ten times larger and divide each result by 10.
How random are the numbers?
They come from the Web Crypto random generator in your browser, which is designed for security uses such as creating keys. The tool also rejects values that would favor some numbers over others, so every value in your range is equally likely.
How many numbers can I generate at once?
Up to 10,000 per run, listed one per line so you can copy them into a spreadsheet. A quantity above 10,000, a non-whole quantity or a maximum below the minimum shows an error instead of a result.