How to use the Random Number Generator tool
- Enter a rangeSet the minimum and maximum, for instance 1 and 500.
- Pick a quantityRequest a single number or as many as 10,000, and choose whether repeats are allowed.
- Click GenerateNumbers appear in large print, with the sum and average shown for multiple draws.
- Copy or saveCopy the results or download a text file; the last 15 draws are kept in the history.
Random number generator features
- Unbiased resultscrypto.getRandomValues plus rejection sampling gives every number in the range exactly equal odds.
- Unique random numbersDraw without repeats for raffles, lotteries or seating plans, so each number appears only once.
- Decimals, order and formatUp to 4 decimal places, optional sorting, and commas, spaces or line breaks between numbers.
- Dice roller and coin tossRoll 1–20 dice with 4 to 100 sides, or flip a coin up to 1,000 times with a heads/tails tally.
- One-click presets1–10, 1–100, a 6-from-49 lottery pick, a 4-digit PIN or a 6-digit code.
Uses for a random number picker
- Prize draws: give each entry a number, then pull one or several winners with “No repeats” switched on.
- School and teaching: choose a roll number, an exercise or a random page in a book.
- Gaming: stand in for missing dice, decide who starts with a coin flip, or pick a random map or level.
- Research and QA: sample random rows from a dataset, build test values or select survey respondents.
- Lottery numbers: create a line like 6 numbers between 1 and 49. All combinations are equally likely, so no generator can improve your odds.
Are these numbers truly random?
Basic generators often rely on Math.random(), which is quick but predictable and slightly lopsided when stretched across a range. This one uses crypto.getRandomValues, the same source browsers use to create encryption keys. Values are fitted to your range by rejection sampling, which discards any raw value that would tilt the odds and simply draws again. That way, in a range of 1 to 20, each number genuinely has a 1 in 20 chance. Draws without repeats use a Fisher–Yates shuffle, so every possible combination is equally likely.
Dice and coin flip probabilities
- One six-sided die (d6): results 1 to 6, each with an equal 16.7% chance.
- Two six-sided dice (2d6): totals from 2 to 12. A 7 is most common at 16.7%, followed by 6 and 8 at 13.9%, while 5 and 9 each come up 11.1% of the time.
- Twenty-sided die (d20): 1 to 20, each 5%.
- Coin: heads or tails, 50% each on every single flip.
Previous results never influence the next one. Seven tails in a row doesn’t make heads more likely next time; thinking otherwise is known as the gambler’s fallacy. Over a large number of flips the share of heads drifts towards 50%, which the flip counter lets you see for yourself.
Tips for better draws
- With “No repeats” on, you can’t request more numbers than the range holds; 1 to 25 allows 25 unique numbers at most.
- For decimals, set the number of places first; the range then includes every step, for example 0.1, 0.2 … 5.0.
- Want to pick a name instead? Use Spin the Wheel. For secure passwords try the Password Generator, and for unique identifiers the UUID Generator.