Random Number Generator: 1 to 100, No Repeats, Raffles
Pick one or up to 1,000 random numbers in any range, like 1 to 100, with or without repeats and sorted. Secure Web Crypto draws, free in your browser.
Updated November 2026
Reviewed by Rafael Duarte
How to generate a random number
Set your range, pick a quantity, generate instantly
1. Set the range
The range starts at 1 to 100. Change MIN VALUE and MAX VALUE to any whole numbers, negatives included, as long as Min is lower than Max.
2. Choose how many
Set QUANTITY from 1 to 1,000. Turn off Allow duplicates for unique numbers, and turn on Sort results to list them in ascending order instead of draw order.
3. Generate and copy
Click GENERATE, then Copy to get one number per line. With the cursor outside the number fields, Space generates again and Shift+Enter copies.
What this random number generator does
Built for quick draws, with nothing hidden
Session history
Keeps the last 20 generations of the session so you can review recent results.
Bit depth and latency
After each generation, shows how many random bits were used (32 or 53) and how long the draw took.
Rejection sampling
Draws come from the browser's Web Crypto API, and out-of-range values are thrown away and redrawn, so no number gets the extra weight that naive modulo scaling gives.
Negative and very large ranges
Min and Max can be any whole numbers between −9,007,199,254,740,991 and 9,007,199,254,740,991 (JavaScript's safe integer limit), with up to 2^53 possible values. Ranges above 2^32 values use 53-bit draws.
Example configurations
When you'll reach for this tool
The most common scenarios among people who use it
Giveaways and raffles
Number your entrants, set Quantity to the number of prizes, turn off Allow duplicates and draw every winner in one click.
Games and tie-breakers
Settle a tie, pick who goes first or choose a page or question at random. For dice with animation and totals, use the dice roller.
Quick picks for any numbered game
Any "pick N from a range" draw works here. For Powerball, Mega Millions and other games with a bonus ball, the lottery number generator already knows the rules.
Development and testing
Generate test IDs or seed database fixtures with varied values.
Common mistake? Start here
Asking for more unique numbers than the range allows
With Allow duplicates off, Quantity can't be larger than the number of values in the range (Max − Min + 1). Asking for 20 unique numbers from 1 to 10 shows an error instead of a result.
Typing a quantity above 1,000
The tool doesn't warn you: anything above 1,000 is quietly cut to 1,000 numbers. For bigger batches with CSV or JSON export, use the random number list generator, which goes up to 10,000.
Pressing Space inside a field
The Space and Shift+Enter shortcuts are ignored while you're typing in MIN VALUE, MAX VALUE or QUANTITY. Click outside the fields first, or just use the GENERATE and Copy buttons.
Entering decimals
This generator works with whole numbers only. A decimal Min or Max is truncated toward zero, so 1.9 becomes 1.
Why use this random number generator
A history of the last 20 generations, plus bit-depth and latency stats after every draw, lets you look back at what came up each time, which helps when someone asks to see the raffle again.
Numbers come from crypto.getRandomValues() with rejection sampling, so every value in your range has the same chance of appearing. Picking names instead of numbers? The random name picker handles lists of people.
Math.random() vs. crypto.getRandomValues()
Why the source of randomness matters
Frequently asked questions
Just click GENERATE. The tool opens with Min 1, Max 100 and Quantity 1, so the first click gives you one number from 1 to 100, each with a 1% chance.
Set MIN VALUE to 1, MAX VALUE to 10, keep QUANTITY at 1 and click GENERATE. Each of the ten numbers has exactly a 10% chance of coming up.
Give each ticket a number, set the range to match (for example 1 to 250), set QUANTITY to the number of prizes and turn off Allow duplicates. One click draws all the winners, and none can come up twice. The draw stays in the session history so you can show it again.
Yes, up to 1,000 per click. Without Sort results they appear in the order they were drawn; with it, in ascending order. Copy puts one number per line on your clipboard.
They come from the Web Crypto API (crypto.getRandomValues()), the browser's cryptographically secure generator. Technically that's pseudorandom, but the output can't be predicted, which is what matters for draws and games.
For a public draw, no. Math.random() is not cryptographically secure, so its output could in principle be predicted, and scaling it to a range with a careless modulo makes some numbers slightly more likely. This tool uses crypto.getRandomValues() and rejection sampling instead.
References
Related Tools
- Random Number List Generator: Up to 10,000, CSV & JSON Random Generate up to 10,000 random numbers at once, with or without duplicates, whole or decimal. Download as CSV, JSON or TXT. Free, no sign-up.
- Random Name Picker: Draw Winners From a List, No Repeats Random Paste names one per line and draw one or several winners at once. Remove picked names for the next round, keep a draw history. Free, no sign-up.
- Flip a Coin Online: Heads or Tails with Live Stats Random Flip a virtual coin with one click or the space bar. Fair, crypto-random heads or tails with live counts, percentages and a history of your flips.
- D&D Dice Roller: d20 Advantage, 4d6 Drop Lowest Random Roll d4 to d100 online for D&D and board games: up to 20 dice, 2d20 with advantage or disadvantage, 4d6 drop lowest for ability scores and roll history.
- Lottery Number Generator — Powerball, Mega Millions & More Random Generate random lottery numbers instantly for Mega-Sena, Powerball, Mega Millions, EuroMillions and more. Free, no sign-up, no repeat numbers.