Free Online Tool

Random Number Generator

Pick random numbers in one click. Set the minimum, maximum and how many numbers you need — perfect for draws, games, lotteries and decisions.

Rate This Tool

★★★★★

How useful was this tool? Click a star to rate it.

Loading ratings…

Advertisement

How to Use

1. Enter the smallest and largest numbers. 2. Enter how many numbers you need. 3. Click Generate Numbers.

About This Random Number Generator

A random number generator picks numbers by chance, with no pattern and no favourite. Teachers use it to pick a student, friends use it to decide who goes first in a game, shops use it for lucky draws, and researchers use it to pick fair samples. This free random number generator lets you set the smallest and largest number and how many numbers you need, then gives you a fresh random list in one click.

Random numbers are useful whenever a choice must be fair. If a teacher always picks the same student, the class calls it unfair. If a draw is done by hand, people suspect the result was fixed. A random generator removes the doubt, because nobody can predict or control the result. It is also useful for games, quizzes, passwords and practice: a maths teacher can generate random numbers for worksheets, and a player can generate random numbers for a dice game.

Random Number Generator Worked Example

Set the minimum to 1, the maximum to 100 and the count to 5, then click Generate Numbers. You might get a list like 7, 42, 18, 93, 55 — and the next click will give a completely different list. Every number between 1 and 100 has the same chance of appearing, and numbers can repeat, just like rolling a dice twice can give the same number. For a lucky draw with 50 tickets, set the range from 1 to 50 and generate 1 number to find the winner.

How Random Numbers Are Made

Computers cannot be truly random, so they use a pseudo-random generator: a maths formula that starts from a seed value, usually the current time, and produces numbers that look random and pass statistical tests. This generator uses your browser's built-in Math.random function, which is good enough for draws, games, teaching and everyday decisions. It is not suitable for security uses like passwords or lottery tickets, where a special cryptographic generator is needed.

Tips for Using the Random Number Generator

Set the range first. Decide the smallest and largest numbers before you generate, so the result fits your draw or game. Generate again for a fresh result. Every click gives a new list, so click again if you need another draw. Allow repeats for dice games. Real dice can repeat, so a list with repeats is normal and fair. Use it for fair picks. Number your students, players or tickets, then generate one number to pick the winner. Do not use it for passwords. Random numbers are fine for games, but passwords need the Password Generator, which mixes letters and symbols too.

Second Worked Example: Rolling a Dice and Picking a Winner

To roll a dice, set the minimum to 1, the maximum to 6 and the count to 1, then click Generate Numbers. You might get 4, and the next roll might give 2: every number from 1 to 6 has the same chance. To pick a winner from 50 raffle tickets, set the range from 1 to 50 and generate 1 number. If the result is 27, ticket 27 wins. For a classroom game with 30 students, set the range from 1 to 30 and generate 3 numbers to pick three students. Every student has the same chance of being picked.

Step-by-Step Guide: How to Use the Random Number Generator

  1. Enter the smallest number in the range, for example 1.
  2. Enter the largest number in the range, for example 100.
  3. Enter how many numbers you need, from 1 to 100.
  4. Click Generate Numbers. The random numbers appear at once.
  5. Click again for a fresh set of numbers whenever you need another draw.

Common Mistakes to Avoid

Setting the maximum below the minimum. The largest number must be bigger than the smallest, or the tool will show an error. Expecting no repeats. Random numbers can repeat, just like rolling a dice twice can give the same number; repeats are normal and fair. Using it for passwords. Random numbers are fine for games, but passwords need letters and symbols too, so use the Password Generator. Thinking the numbers are rigged. The generator has no memory and no favourite numbers, so every number has the same chance each time. Generating too many numbers at once. The tool allows up to 100 numbers per click; for more, generate again.

Pro Tip: To pick a winner fairly, number every ticket or name first, then generate one random number. Show the result to everyone so the draw is transparent.

Note: These numbers are pseudo-random, made by your browser's random function. They are fair for draws, games and teaching, but not suitable for security uses like passwords or lottery tickets.

More practice: Here is one more example to try in the generator above: imagine a teacher has a class of 40 students and wants to pick 5 of them to answer questions. Set the smallest number to 1, the largest to 40 and the count to 5, then click Generate Numbers. You might get 7, 19, 23, 31 and 38, and those five students answer the questions. If the same number appears twice, generate one more number to replace it. This method is fair because every student has exactly the same chance of being chosen, and nobody can say the teacher picked favourites. The same trick works for picking teams, choosing raffle winners and deciding who goes first in a game.

Frequently Asked Questions

Are the numbers truly random? They are pseudo-random, made by your browser's random function from the current time. They are fair and unpredictable for draws, games and teaching, but they are not suitable for security uses like passwords.

Can numbers repeat? Yes. Each number is picked independently, so the same number can appear twice, just like rolling a dice twice can give the same number.

How many numbers can I generate at once? You can generate from 1 to 100 numbers in one click. For more, generate again or run the tool twice.

Can I generate numbers between negative values? Yes. Enter a negative minimum, for example -10, and a maximum, for example 10, and the generator will pick numbers in that range.

What is a random number generator used for? Lucky draws, picking a winner, choosing who goes first in a game, making maths worksheets, sampling for surveys, and deciding between options fairly.

Is this random number generator free? Yes, it is completely free, with no sign-up and no limit on how many numbers you generate.

Can I generate random numbers without repeats? This tool can repeat numbers, because each number is picked independently. If you need unique numbers, generate more than you need and ignore the repeats.

Is the random number generator fair? Yes. Every number in your range has exactly the same chance of being picked, and the generator has no memory of past results.

Related Tools

Password Generator · Tip Calculator · Date Calculator