Quick access

Saved in this browser. Sign in to keep it on all your devices.

Random Number Generator

Pick a random number between any two numbers, or draw many at once with or without repeats. Every number in the range is equally likely.

Press Generate, or press Enter.

Recent draws

Random number between 1 and…

Need a quick decision instead? Flip a coin, roll dice or spin the wheel.

Version 1.1 Updated What's new

Release notes

  1. v1.1 Latest
    • Added an in-depth guide below the tool, written from what the tool actually does.

About the Random Number Generator

Pick random numbers between any minimum and maximum. Draw one number or up to 10,000 at once, choose whether numbers may repeat, sort the results, or add up to six decimal places. The lottery mode draws quick-pick lines for common lottery formats. Numbers come from your browser’s secure random number generator with no bias, and nothing is sent to our server.

How to use it

  1. 1 Enter the lowest and highest number.
  2. 2 Choose how many numbers you want and whether they may repeat.
  3. 3 Press Generate, or press Enter.
  4. 4 Copy the numbers, or generate again.

Frequently asked questions

Is this random number generator truly random?

It uses crypto.getRandomValues, a cryptographically secure generator built into your browser, with rejection sampling so no number is more likely than another. That is as random as you need for games, draws and sampling.

How do I pick numbers without repeats?

Keep “No repeats” ticked. The numbers are then drawn like balls from a bag, so each can come up only once. You can draw up to the size of the range.

Can it pick decimal numbers?

Yes. Set the decimal places from 1 to 6. With 2 decimal places, a range of 0 to 1 can give 0.00, 0.01 and so on up to 1.00, each equally likely.

Can I use it for a raffle or giveaway?

Yes. Number the entries from 1 to the total, then generate as many winners as you need with no repeats. Record your screen if you want to show the draw.

Are my numbers saved?

Your last 10 draws are kept in your browser only, so you can look back at them. Nothing is sent to our server.

Picking a number between 1 and 10, 1 and 100, or any range

Set the lowest and highest number and press Generate. Both ends are included, so 1 to 10 can give 1 or 10, and every number in the range has the same chance: 1 in 10 for 1–10, 1 in 100 for 1–100. The range buttons under the tool open the most common ones, such as 1–6 for a die or 1–3 for a quick three-way choice.

The range can start anywhere, including at 0 or below zero. 0–9 gives a single random digit, and −10 to 10 gives 21 possible results, because zero counts too.

Drawing several numbers with no repeats

With “No repeats” ticked, the tool works like drawing numbered balls from a bag without putting them back. Ask for 5 numbers from 1–50 and you get five different numbers; ask for all 50 and you get every number from 1 to 50 in a random order, which is a quick way to shuffle a list, set a speaking order or seat people at random.

You cannot draw more numbers than the range holds without repeats: 1–40 has only 40. Untick the option when repeats are fine, for example to simulate 20 separate dice rolls.

Why repeats and streaks are normal

People expect random numbers to look spread out, but real randomness clumps. Draw 10 numbers from 1–10 with repeats allowed and the chance that at least two match is about 99.96%; getting ten different numbers happens only about 4 times in 10,000 tries. A run like 7, 7, 3 is not a sign that something is broken.

This is the same effect as the birthday problem: in a group of just 23 people, two share a birthday more often than not.

How the numbers are generated

Each number comes from crypto.getRandomValues, the secure random source built into your browser, the same one used to create encryption keys. It is not seeded by the time of day, so draws cannot be predicted or repeated.

A common mistake in simple generators is to take a big random number and use the remainder after dividing by the range size. Because 4,294,967,296 does not divide evenly by 6, that makes some results slightly more likely. This tool throws away the few values that would cause that bias and draws again, so every number in your range is exactly equally likely.

Running a fair raffle or giveaway

  • Number the entries from 1 upwards, in an order fixed before the draw, such as ticket numbers or the order of comments.
  • Say in advance how many winners you will draw and that repeats are off.
  • Record your screen or draw live, so people can see the range and the result.
  • If a winner does not reply, draw again with the same range rather than picking the next person on the list yourself.