Need to pick a raffle winner, choose a random student, draw lottery-style numbers for a game, or sample rows from a spreadsheet? This free random number generator picks whole numbers between any minimum and maximum you set. Generate a single number or a whole list, choose whether numbers may repeat or must all be unique (like drawing tickets from a hat), and optionally sort the results. Unlike many simple generators that use JavaScript's Math.random, this one uses your browser's cryptographically secure random source (crypto.getRandomValues) with rejection sampling, so every number in the range is equally likely and there's no subtle bias toward low numbers. That makes it a fair choice for giveaways and classroom picks. It also keeps a short history of your last draws on screen so you can show your working, and a copy button to paste results into a spreadsheet or chat. Please don't use it for regulated lotteries or gambling, which have their own certified systems. Everything happens on your device; nothing is logged or sent, so no one, including us, can see or influence the results.
Generate random numbers
History
How to use the random number generator
- Set the minimum and maximum (both included).
- Choose how many numbers you need.
- Tick "No repeats" for draws where each number can only come up once.
- Press Generate, then copy the results.
Quick ideas
- Coin flip: 1 to 2.
- Dice roll: 1 to 6.
- Pick a raffle winner: 1 to the number of tickets.
- Random sample: 1 to your row count, no repeats.
FAQ
Is it truly random?
It uses your browser’s cryptographically secure pseudo-random generator, which is designed to be unpredictable and is used for things like encryption keys. For everyday picks it’s as fair as it gets.
Are min and max included?
Yes, both ends of the range can be picked.
What does “no repeats†do?
Each number can appear only once, like drawing from a hat. You can’t ask for more unique numbers than the range contains.
Can I use it for official lotteries?
No. Regulated lotteries and gambling require certified systems. Use this for games, classrooms and giveaways.
Comments
Post a Comment