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.

Runs in your browserUpdated Built and maintained by Leon and Henrik

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.

Random Number Generator

Options

Results
Press Generate to draw your numbers
Runs in your browser
Nothing is uploaded

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 wantMinMaxHow manyUnique
Roll a die161—
Roll two dice162Off
Flip a coin (1 = heads)121—
Pick 3 raffle winners from 250 tickets12503On
Pick a random spreadsheet row (header in row 1, data to row 501)25011—
UK Lotto-style line1596On, sorted
Powerball-style main numbers1695On, 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:

DrawChance of at least one repeat
3 numbers from 1–644%
4 numbers from 1–1050%
5 numbers from 1–1009.7%
12 numbers from 1–10050%
23 numbers from 1–36551%

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