Skip to content
genspinner

Random Number Generator

Pick one or more random numbers in any range, with or without repeats.

Generate

Several draws at once, e.g. lottery lines.

example

65

Pick a number: 1–3, 1–10 and other common ranges

Type the range into From and To and press the button. Some ranges people ask for all the time:

You wantSet From – ToReady-made page
Pick a number 1 or 21 – 21 or 2
Pick a number 1–31 – 3This page
Pick a number 1–4 or 1–51 – 4 or 1 – 51–4, 1–5
Roll a die (1–6)1 – 61–6
Give me a number 1–101 – 10This page
Pick a number 1–20 or 1–1001 – 20 or 1 – 1001–20, 1–100

Just need any number? Leave the defaults and press the button: it gives you a number between 1 and 100.

What you can use it for

Raffles and giveaways

Number your entries, set the range to match, and draw winners with No repeats on so nobody wins twice.

Lottery-style picks

For a 6-from-49 draw, set 1 to 49, choose 6 numbers, No repeats on and Smallest first.

Games and classrooms

Pick who goes first, choose a random question number or split a class into teams.

Sampling and testing

Choose random rows to check in a spreadsheet, or generate test data for forms. Prefer formulas? See random numbers in Excel.

Each of these opens the same generator with the range already set, plus tips for that use:

  • 1 or 2: a quick two-way (or three-way) choice.
  • 1–4 and 1–5: small choices, quiz answers and turn order.
  • 1–6: a virtual six-sided die.
  • 1–20: a d20 roller for tabletop games.
  • 1–100: raffles, guessing games and percentages.
  • Bingo numbers: call 75-ball or 90-ball bingo.

How the generator works

Every whole number from your minimum to your maximum, including both ends, has exactly the same chance of being picked. With No repeats on, the draw works like pulling numbered balls out of a bag: once a number is drawn, it can't come up again in that batch. With it off, every pick is independent, like rolling a die many times.

If you ask for more unique numbers than the range contains (say 20 numbers between 1 and 10), you'll get every number in the range once.

Need a coin flip rather than a number? The Yes or No Generator answers any question in one click.

Generating numbers in code instead? Our guide to random numbers in Python covers randint, sample and NumPy, and the Excel guide does the same for RANDBETWEEN and RANDARRAY.

Frequently asked questions

Is this random number generator truly random?
It uses your browser's built-in random number generator, which is statistically uniform and more than fair enough for games, raffles and classroom use. For security uses like passwords, use the Password Generator, which relies on cryptographically secure randomness.
Can I generate negative numbers?
Yes. Set the From field to a negative value, for example −10 to 10.
How many numbers can I generate at once?
Up to 1,000 per batch. Copy all of them at once, separated by commas.

last updated