Random Number Generator

Pick a random number between any two values, such as 1 to 10, 1 to 100 or −500 to 500, or generate up to 10,000 numbers at once. Choose whole numbers or decimals, allow or prevent repeats, exclude specific numbers, and sort the results. Every number is drawn with your browser's cryptographically secure random generator, with no bias toward any value. It's ideal for raffles, games, classroom activities, sampling, statistics and testing.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile
Quick:
More options

Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

How the Random Number Generator Works

This random number generator (RNG) picks numbers using crypto.getRandomValues, the secure random source built into every modern browser. Many simple online generators use Math.random() and a formula like floor(random × range), which can make some numbers very slightly more likely than others. This tool uses rejection sampling instead: it throws away the few raw random values that would cause bias, so every number in your range has exactly the same chance of being picked. For a range of 1 to 100, each number has a 1% chance on every draw.

When you ask for several numbers without repeats, the generator draws them like numbered balls from a bag: once a number is drawn, it can't come up again. With "Allow repeats" ticked, each draw is independent, like rolling a die many times.

How to Generate Random Numbers

  1. Enter the minimum and maximum. Both are included, so 1 to 10 can return 1 or 10. Negative numbers work too.
  2. Choose how many numbers you need, from 1 to 10,000.
  3. Click Generate, or use a quick range button.
  4. Open More options for decimals, sorting, separators, excluded numbers or repeats.
  5. Copy or download the list. Your recent draws are kept in the history while the page is open.

Common Uses

UseSuggested settings
Raffle or giveaway winner1 to number of tickets, 1 number
Pick several winners1 to number of entries, several numbers, no repeats
Classroom: choose a student1 to class size
Random sample for a survey1 to population size, sample size, no repeats, sorted
Test dataAny range, 1,000+ numbers, repeats allowed, commas
Decision between options1 to number of options
Probability or decimal values0 to 1, 4 decimal places

Random Numbers Without Repeats

Generating unique random numbers is the most common need for draws and sampling. If you ask for more unique numbers than the range contains (for example 20 unique numbers between 1 and 10), the tool tells you and returns all of them in random order, which is effectively a shuffle. Setting the count to the size of the range (1 to 30, count 30) is an easy way to randomly order a list of 30 items.

Excluding Numbers

Use the exclude box to skip numbers that shouldn't be drawn, such as ticket numbers that weren't sold, a winner who has already been picked, or unlucky numbers like 13. Separate them with commas or spaces. Exclusions apply to both whole numbers and decimals.

Is It Truly Random?

Computers generate random numbers in two main ways. Pseudo-random generators use a mathematical formula from a starting "seed", which is fast but predictable if the seed is known. Cryptographically secure generators, like the one used here, are seeded from unpredictable physical events inside your device (hardware noise, timing jitter, and so on) and are designed so that no one can predict the next number, even after seeing millions of previous ones. That's the same standard used to create encryption keys, so it's far more than enough for games, draws and statistics. For regulated gambling or official lotteries, certified hardware random number generators are required by law.

Fair Draws: Tips

  • Agree the range and rules first, before anyone sees a result.
  • Share your screen or record the draw for online giveaways, so participants can see it's fair.
  • Draw once. Re-rolling until you like the result defeats the purpose.
  • For names instead of numbers, use the Random Name Picker.

Every draw is also added to the history panel with its range, so you can scroll back and check earlier results during a session.

Frequently Asked Questions

Are the minimum and maximum included?

Yes. A range of 1 to 10 can produce any whole number from 1 to 10, including both ends.

Can I generate decimal numbers?

Yes. Open More options and set the decimal places (up to 10).

How do I pick numbers without duplicates?

That's the default. Tick "Allow repeats" only if you want the same number to be able to appear more than once.

What's the largest range?

Up to about ±9 quadrillion (9,000,000,000,000,000), with up to 10,000 numbers per click.

Is the generator biased?

No. It uses secure random values with rejection sampling, so every number in the range is equally likely.