Random Number Generator
Generate random whole numbers in any range — set a minimum, maximum and count, with options for unique (no repeats) and sorted results.
Set a minimum, a maximum and how many numbers you want, choose whether they should be unique or sorted, then press Generate to draw random whole numbers you can copy in one line. Free. No sign-up. Runs in your browser, nothing is uploaded.
Options
Set a minimum, a maximum and how many numbers you want (up to 1,000), decide whether repeats are allowed and whether to sort, then press Generate. The results appear as chips and as one comma-separated line that Copy puts on your clipboard, ready for a spreadsheet or a group chat. The default — 5 numbers from 1 to 100 — is there so you can try it at once.
Settings for common jobs
| You want | Min | Max | How many | Unique |
|---|---|---|---|---|
| Roll a die | 1 | 6 | 1 | — |
| Roll two dice | 1 | 6 | 2 | Off |
| Flip a coin (1 = heads) | 1 | 2 | 1 | — |
| Pick 3 raffle winners from 250 tickets | 1 | 250 | 3 | On |
| Pick a random spreadsheet row (header in row 1, data to row 501) | 2 | 501 | 1 | — |
| UK Lotto-style line | 1 | 59 | 6 | On, sorted |
| Powerball-style main numbers | 1 | 69 | 5 | On, sorted |
Lottery formats change from time to time, so check the current rules before relying on the ranges above — and remember a random pick has exactly the same odds as any other line.
Why repeats turn up more often than you'd expect
With unique switched off, each number is drawn independently, and duplicates appear surprisingly quickly. It's the same maths as the birthday problem:
| Draw | Chance of at least one repeat |
|---|---|
| 3 numbers from 1–6 | 44% |
| 4 numbers from 1–10 | 50% |
| 5 numbers from 1–100 | 9.7% |
| 12 numbers from 1–100 | 50% |
| 23 numbers from 1–365 | 51% |
So if you ask for 12 numbers between 1 and 100 and see a duplicate, nothing is broken — it's a coin flip whether you'll get one. If repeats would be unfair (two prizes to the same ticket), turn on Unique.
Running a draw people will trust
- Fix the rules first. Decide the range, the number of winners and what happens if a winner can't be reached, before you press Generate.
- Number the entries in a visible list and share it, so everyone can check their ticket matches a number.
- Draw once, publicly. Share your screen or record it. Pressing Generate until a result "looks right" defeats the purpose.
- Keep draw order for prize ranking. Leave Sort results off if the first number drawn wins first prize; switch it on only when order doesn't matter and you want an easier list to read out.
If your entries are names rather than numbers, the Random Picker Wheel spins through them visually, and the Secret Santa Generator handles gift-exchange pairings.
Limits and edge cases
- Up to 1,000 numbers per draw; a range up to about 9 quadrillion wide.
- Minimum above maximum is flagged rather than silently swapped.
- Unique with a huge range stays fast because the tool shuffles only as many positions as you draw, not the whole range.
- For security uses, switch tools: the Password Generator and UUID Generator use cryptographic randomness. To see a result in binary or hex, the Number Base Converter does that.
Frequently asked questions
Related tools
All Generators tools →- UUID GeneratorGenerate UUID v4, v7 and ULID identifiers in bulk — instantly and locally.
- Password GeneratorGenerate strong, random passwords right in your browser — your passwords never leave your device.
- Number Base ConverterConvert integers between binary, octal, decimal and hexadecimal with live, error-checked fields.
