Random Number Generator — Free & Instant

Random Number Generator

This free random number generator picks one or several random whole numbers between any minimum and maximum you choose. Use it to draw a raffle winner, decide who goes first, pick a number from a list, roll a virtual die or generate quick test data. It runs instantly in your browser with no signup.

How to use the random number generator

  1. Set the minimum and maximum values. Both ends are included, so 1 to 6 can return 1, 2, 3, 4, 5 or 6.
  2. Choose how many numbers you want: 1, 5, 10 or 20.
  3. Press Generate. Press Generate again for a completely new result.

How the numbers are generated

The tool uses the random number function built into your web browser and scales it to your range with the standard formula: floor(random × (max − min + 1)) + min. Each number in the range has the same chance of appearing, and every number in a batch is drawn independently, so repeats are possible, just like rolling a die twice and getting the same face.

Browser random functions are pseudo-random: they come from an algorithm rather than a physical process, but the results are unpredictable enough for games, draws and everyday decisions. For passwords and security keys use a dedicated tool such as our password generator.

Useful presets

UseMinimumMaximum
Roll a six-sided die16
Flip a coin (1 = heads, 2 = tails)12
Pick a card position in a deck152
Choose a day of the month131
Pick a percentage0100
Draw a raffle ticket from 500 sold1500

How likely are repeated numbers?

People are often surprised by how quickly repeats appear. If you draw 10 numbers between 1 and 100, there is about a 37% chance that at least two are the same. With 20 numbers the chance rises to about 87%. This is the same effect as the famous birthday paradox. If you need numbers with no repeats, for example for a raffle with several prizes, generate one number at a time and draw again if a number has already come up.

Ideas for using a random number generator

  • Running a fair giveaway on social media: number the comments and draw a winner.
  • Choosing a random student, team member or speaking order.
  • Board games when you have lost the dice.
  • Picking a random page, exercise or recipe from a numbered list.
  • Creating sample numbers to test spreadsheets, forms or code.
  • Breaking a tie between two equally good options.

Frequently asked questions about the random number generator

Are the numbers really random?

They are pseudo-random numbers from your browser. They are unpredictable and evenly spread, which is suitable for games and draws, but not for cryptography.

Are the minimum and maximum included?

Yes. Both limits can be drawn.

Can I use negative numbers?

Yes. Set a negative minimum, for example −50 to 50.

Can I get the same number twice?

Yes, each number is drawn independently. Draw again if you need unique numbers.

Can I prove a draw was fair?

For public giveaways, record your screen while you press Generate so participants can see the result was not chosen by hand.

Is there a limit to the range?

No practical limit. You can use ranges like 1 to 1,000,000.

Related tools

Further reading: Random number generation on Wikipedia.