Generate random numbers in any range you set, choosing how many to draw and whether to allow duplicates or sort the results. Useful for raffles, turn order, dice rolls and sample data — all drawn in your browser. If you want exactly 6 numbers from 1 to 45, use the Lottery Number Generator instead.
What can I use this for?
Pick raffle winners, decide who goes first, choose dice rolls, generate sample data, or make any other decision that needs a fair, unpredictable number — all instantly, right in your browser. Need exactly 6 numbers from 1–45 for a lottery ticket instead? Try the dedicated Lottery Number Generator.
How to use the random number generator
- Enter the range — set the minimum and maximum values.
- Set the count and options — choose how many to generate, and check "No Duplicates" or "Sort Ascending" if needed.
- Generate and copy — click "Generate Numbers", then grab the results with "Copy All".
Can I generate numbers without duplicates?
Yes — check "No Duplicates" to draw each number at most once, just like a lottery draw. This only works if the range (maximum − minimum + 1) is at least as large as how many numbers you're generating; otherwise you'll see an error explaining why.
How are the random numbers generated?
It uses your browser's built-in random number generator to produce an unpredictable value each time. That's plenty for everyday draws and sampling, but for security-critical uses like passwords, use the Password Generator, which relies on cryptographic randomness.
Can it generate negative numbers or zero?
Yes. As long as the minimum is less than or equal to the maximum, you can generate any integer range, including negative numbers and zero (for example, from −10 to 10).
How many numbers can I generate at once?
You can generate up to 1,000 numbers at once. However, when "No Duplicates" is on, you can't exceed the number of distinct values available within the range you specify.