About the Random Number Generator
Pick random whole numbers between any minimum and maximum. Generate one number or thousands, avoid duplicates for raffles and lotteries, and sort the results.
Key features
- Any range, including negative numbers
- Generate one number or up to 10,000 at once
- No-duplicates mode for raffles and lotteries
- Optional sorting of results
- Unbiased, cryptographically secure randomness
- One-click presets: 1–10, 1–100, 1–1000, lottery
Generate random numbers in any range
Pick a random number between 1 and 100, choose raffle winners, draw lottery numbers, select a random sample or settle a game. Set the range, choose how many numbers you need and press Generate.
Common uses
| Task | Settings |
|---|---|
| Pick a number 1–10 | Min 1, Max 10, 1 number |
| Raffle with 250 tickets | Min 1, Max 250, no duplicates |
| Lottery 6 from 49 | Min 1, Max 49, 6 numbers, no duplicates, sorted |
| Random sample of 20 from 500 rows | Min 1, Max 500, 20 numbers, no duplicates |
| Random PIN digits | Min 0, Max 9, 4 numbers |
How fairness is guaranteed
Simple random generators often use random() × range, which can make some numbers very slightly more likely. This generator uses rejection sampling on 32-bit random values, so every number in the range has exactly the same probability.
Duplicates or not?
- With duplicates (default): each number is independent, like rolling a die repeatedly.
- No duplicates: like drawing numbered balls from a bag without putting them back. You can't ask for more numbers than the range contains.
Odds reference
| Range | Chance of any specific number |
|---|---|
| 1–6 | 16.7% |
| 1–10 | 10% |
| 1–100 | 1% |
| 1–1,000 | 0.1% |
Related tools
Pick names instead with Spin the Wheel, roll virtual dice, or flip a coin.
How to use the Random Number Generator
- Open the tool. It's ready to use immediately, with nothing to install.
- Enter your entries, numbers or settings, or keep the defaults.
- Press the main button (spin, roll, start or generate) and watch the result.
- Repeat as often as you like; results are generated fresh each time in your browser.