Generate 3 Random Numbers: How to Do It

How-to basics · Updated November 23, 2026

To generate 3 random numbers, use a random number generator (RNG) that produces independent, uniformly distributed values—such as a physical dice roll, a dedicated RNG website, or a programming language’s random function. For example, rolling a fair six-sided die three times might yield 4, 1, and 6, and that’s a perfectly valid set of 3 random numbers.

What Does “Random” Really Mean?

Randomness in this context means each number has an equal chance of appearing, and the outcome of one draw doesn’t influence the next. True randomness is hard to achieve with computers because they follow deterministic algorithms. Most software uses a pseudo-random number generator (PRNG), which starts from a “seed” value and then produces a long sequence that appears random but is actually predictable if you know the seed. For most everyday uses—picking a prize winner, choosing a lottery ticket, or assigning groups—a PRNG is perfectly adequate. For cryptography or scientific simulations, you’d want a cryptographically secure RNG that uses entropy from physical sources, like your device’s microphone noise or mouse movements.

How to Generate 3 Random Numbers (Step-by-Step)

Here are the most common methods, from simplest to most technical:

  • Physical dice: Roll one die three times, or roll three dice at once. Each die gives a number from 1 to 6. If you need a wider range, use a 10-sided die (0-9) or a 20-sided die (1-20).
  • Online RNG: Visit a site like random.org (which uses atmospheric noise) or any search result for “random number generator.” Enter the range (e.g., 1 to 100), set the count to 3, and click generate. You’ll get three numbers like 42, 17, 89.
  • Spreadsheet (Excel/Google Sheets): In Excel, type =RAND() in three cells to get decimals between 0 and 1. To get integers between 1 and 100, use =RANDBETWEEN(1,100) in three cells. In Google Sheets, the same formulas work.
  • Programming (Python): Use the random module: import random; print([random.randint(1,100) for _ in range(3)]). This prints a list of three integers.
  • Calculator: Many scientific calculators have a Ran# or RAND button that gives a decimal between 0 and 1. Press it three times and multiply by your range.

Choosing the Right Range and Distribution

Before generating, decide what range your numbers should fall in. Are you picking a winner from 50 entries? Then use 1-50. Are you simulating a dice roll? Use 1-6. Also consider whether you want unique numbers (no repeats) or if repeats are allowed. For example, if you’re drawing 3 raffle tickets from a hat, you want unique numbers. If you’re rolling dice, repeats are fine. Most online RNGs have a “unique” checkbox. In Excel, to generate 3 unique random numbers, you can use =RANK() on a list of RAND() values, or use the newer RANDARRAY function combined with sorting. For a simple approach, generate a list of numbers with =RANDBETWEEN(1,100) in A1:A10, then use =INDEX(A1:A10, MATCH(SMALL(COUNTIF(A1:A10, A1:A10), ROW(1:1)), COUNTIF(A1:A10, A1:A10), 0))—but that’s complex. Easier: use a website that offers “random sequence generator” with no repeats.

Common Problems and Misconceptions

  • “Random” numbers that repeat too often: If you generate 3 numbers from 1-10, you might get 5,5,5. That’s still random—each draw is independent. But if you need distinct numbers, set the “unique” option.
  • Using the current time as a seed: Many simple RNGs use the system clock. If you generate two sets within the same millisecond, you might get identical results. That’s why you should use a good RNG or add a random seed from a physical source.
  • Human bias: When people “randomly” pick numbers, they tend to avoid patterns (like 1,2,3) and favor numbers like 7 or 3. True randomness doesn’t care about patterns—1,2,3 is just as likely as 7,42,19.
  • Excel’s RAND() recalculates: Every time you edit a cell, RAND() recalculates and gives new numbers. To freeze the results, copy the cells and paste as values (right-click > Paste Special > Values).

Comparing Methods: Which Is Best?

The best method depends on your need for security, convenience, and control.

  • Physical dice: Truly random (if the die is fair), but limited range and slow for many draws.
  • Online RNG (random.org): Uses atmospheric noise, which is truly random. Good for fair draws, but you must trust the website.
  • Spreadsheet RNG: Fast and convenient, but pseudo-random. Good for simulations, not for security-sensitive draws.
  • Programming language RNG: Similar to spreadsheet—pseudo-random unless you use a cryptographic library. For Python, random.SystemRandom() uses OS entropy.
  • Calculator RNG: Usually pseudo-random, but fine for casual use.

Costs, Safety, and Fairness

Most RNG methods are free. Online generators may have premium features, but basic 3-number generation is free. For safety, never use a pseudo-random generator for anything involving money or security—like generating a password or a cryptographic key. Use a dedicated secure RNG (e.g., secrets module in Python, or a hardware token). For fairness in a contest, use a method that is publicly verifiable, like drawing numbered balls from a container or using a well-known RNG service. Always document the method and the seed (if any) so you can prove the draw was fair.

Frequently Asked Questions

Can I generate 3 random numbers without a computer?

Yes. Roll a die three times, shuffle a deck of cards and draw three, or use a random number table from a statistics book. For larger ranges, you can use a spinner or draw from a hat with numbered slips.

Are the numbers from random.org truly random?

Random.org uses atmospheric noise, which is considered truly random because it’s based on physical processes, not algorithms. However, the service itself is a black box, so you have to trust that it works as claimed. For most purposes, it’s reliable.

Why do I sometimes get the same number twice when generating 3 numbers?

Because each draw is independent. If you’re generating numbers from 1 to 10, the chance of getting a specific number twice is 1/10 for the second draw, regardless of the first. Over many trials, repeats are common. If you need unique numbers, use a “no repeats” option.

How do I generate 3 random numbers in Excel that don’t change?

Use =RANDBETWEEN(1,100) in three cells, then copy and paste as values (right-click > Paste Special > Values). This locks the numbers. Alternatively, use a static formula like =RANDARRAY(3,1,1,100,TRUE) and then copy-paste values.

What’s the difference between random and pseudo-random?

True random numbers come from physical processes (like radioactive decay or atmospheric noise) and are unpredictable. Pseudo-random numbers come from a mathematical algorithm that produces a sequence that looks random but is deterministic—if you know the seed, you can reproduce the sequence. For most non-security uses, pseudo-random is fine.

Can I use random numbers for a lottery?

Yes, you can use any RNG to pick lottery numbers, but it won’t increase your odds—each combination is equally likely. If you’re running a lottery, you need a fair and verifiable RNG, ideally one that’s audited. For personal picks, a simple RNG is fine.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.