How the random number generator works
Enter a minimum, a maximum and how many numbers you want, from 1 to 100. Both ends of the range can come up. With “unique” ticked, each number is drawn once and removed from the pool, like tickets from a bowl; without it the same number can appear again. If you type the range backwards, the tool swaps it for you.
Worked example
A school quiz has 250 entries numbered 1 to 250 and three prizes. Set 1 and 250, ask for 3 numbers and tick unique: you get three different ticket numbers. Ask for 20 unique numbers between 1 and 10 and the tool refuses, because there are only 10 to draw.
Limits and common mistakes
- Numbers come from Math.random, the browser’s everyday generator. It is fine for classroom games and friendly draws, but not for lotteries, security codes or anything with money or legal stakes.
- Whole numbers only. Decimals in the boxes are cut off, so 2.9 is read as 2.
- At most 100 numbers per click.
- For a public giveaway, announce the range first and record your screen while you draw, so entrants can trust the result.
Frequently Asked Questions
Can the same number appear twice?
It can when unique is off. With unique selected, each chosen number is removed from the pool for that draw. You cannot request more unique numbers than the range contains.
Are both ends of my range included?
Yes. A range from 1 to 10 can return both 1 and 10. Enter whole numbers; decimal entries are cut off. If you reverse the minimum and maximum, the tool swaps them.
Is this suitable for passwords or an audited prize draw?
It uses Math.random for casual selections and does not provide a cryptographic or independently audited draw. Use the Password Generator for passwords. For a draw with financial or formal rules, use a process that meets those requirements.