8 Random Numbers: How to Pick Them Fairly

How-to basics · Updated November 23, 2026

Here are 8 random numbers: 47, 12, 83, 5, 29, 64, 91, 18. That list was generated using a mathematical pseudo-random process, but if you need truly unpredictable numbers—for a lottery, a giveaway, or a cryptographic key—you should use a different method than simply picking from memory.

What “Random” Actually Means

Randomness isn’t just “unpredictable to you.” In statistics, a sequence is random if each number has an equal chance of appearing and no number can be predicted from the ones before it. Human brains are terrible at this: when asked to pick “random” numbers, people overwhelmingly choose odd numbers, avoid repeats, and cluster around 1–10 or 20–30. Studies of lottery picks show that numbers like 7 and 3 appear far more often than 2 or 4, simply because people think they “feel” random.

True randomness comes from physical processes—radioactive decay, atmospheric noise, or thermal noise in a computer chip. Most everyday “random” numbers come from pseudo-random number generators (PRNGs), which use a mathematical formula to produce a sequence that looks random but is actually deterministic if you know the starting seed.

How Computers Generate Random Numbers

When you use a programming language like Python, JavaScript, or Excel, you’re almost always using a PRNG. For example, Excel’s RAND() function returns a decimal between 0 and 1, and RANDBETWEEN(1,100) returns an integer. These functions use an algorithm called the Mersenne Twister (in older Excel) or a newer generator in Microsoft 365. The sequence is seeded by the system clock, so it’s different each time you open the workbook.

For security-sensitive uses (like generating a password reset token), computers use a cryptographically secure PRNG (CSPRNG) that draws entropy from hardware events. In Python, that’s the secrets module; in JavaScript, it’s crypto.getRandomValues(). These are not the same as the default random module in Python, which is fine for games but not for security.

How to Generate 8 Random Numbers Yourself

If you don’t trust a computer or just want to do it by hand, here are three methods that are far better than “thinking of numbers”:

  • Dice method: Roll a 10-sided die (d10) eight times for numbers 0–9, or roll two dice and combine them for 1–100. For 1–100, roll a d10 for the tens digit (0–9) and another for the ones digit, treating 00 as 100.
  • Physical random number table: Print a table of random digits from a reputable source (like a statistics textbook or NIST) and read off pairs of digits.
  • Atmospheric noise: Use a service like random.org, which samples atmospheric noise to generate genuinely unpredictable numbers. You can request 8 integers between 1 and 100 and get a list instantly.

If you need the numbers to be reproducible (for a game or simulation), use a PRNG with a fixed seed. For example, in Python: random.seed(42) then random.sample(range(1,101), 8) gives the same 8 numbers every time you run it.

Common Problems with “Random” Numbers

The biggest issue is bias. People tend to avoid numbers that end in 0, avoid repeats, and pick numbers that are “lucky” or have personal meaning. If you’re picking lottery numbers, this doesn’t affect your odds of winning, but it does increase the chance you’ll share a jackpot with others. If you’re doing a scientific experiment, bias can ruin your results.

Another problem is the gambler’s fallacy: after seeing 47, 12, 83, you might think “5 is due” because it hasn’t appeared. But in a truly random sequence, past numbers have zero influence on future ones. A sequence like 1, 1, 1, 1, 1, 1, 1, 1 is just as likely as any other specific sequence of 8 numbers, but our brains see it as “not random.”

If you’re using a computer, a common mistake is using RAND() in Excel without recalculating—Excel recalculates every time you change a cell, so your “random” numbers change unexpectedly. To freeze them, copy the cells and paste as values (right-click > Paste Special > Values).

How to Choose a Random Number Generator

Match the generator to the stakes. For a casual game or a classroom activity, a PRNG like RANDBETWEEN is fine. For a lottery, a giveaway, or anything with money or prizes, use a physical method or a CSPRNG. For cryptography, only use a CSPRNG—never a PRNG.

Here’s a quick guide:

  • Casual use: Excel RANDBETWEEN(1,100), Python random.randint(1,100), or a dice roll.
  • Giveaways or draws: Use random.org or a physical drawing from a hat.
  • Security (passwords, tokens): Use secrets.randbelow() in Python or crypto.getRandomValues() in JavaScript.

If you need a list of 8 unique numbers (no repeats), use a sampling function: in Excel, use =SORTBY(SEQUENCE(100),RANDARRAY(100)) and take the first 8—but note that RANDARRAY is volatile and will recalculate. In Python, use random.sample(range(1,101), 8).

Costs and Safety of Random Number Services

Most random number generators are free. random.org offers free basic use, but charges for high-volume or commercial use. Physical dice cost a few dollars. There’s no safety risk in generating random numbers themselves, but if you use them for passwords or security tokens, ensure the generator is cryptographically secure. Never use a PRNG seeded by the current time for a password—it’s predictable.

If you’re using random numbers for a lottery or a raffle, check local laws about fairness and transparency. Many jurisdictions require that draws be conducted with a method that is auditable and cannot be influenced by a single person. Using a public, verifiable source like random.org can help, but always keep a record of the seed or the raw output.

Alternatives to Random Numbers

Sometimes you don’t need randomness at all. If you’re assigning participants to groups, you might use a systematic sample (every 10th person) or a stratified sample to ensure balance. If you’re generating a test sequence, you might use a low-discrepancy sequence like Sobol or Halton, which covers the space more evenly than random sampling. If you’re creating a password, you might use a passphrase instead of random digits—it’s easier to remember and just as secure.

For games, you might use a shuffled deck instead of random numbers—a deck guarantees no repeats until the deck is exhausted, which is often more fun.

Frequently Asked Questions

Are the 8 numbers you gave at the top truly random?

They came from a pseudo-random generator, so they are not truly random in the physical sense. They are unpredictable to you, but if you knew the seed and the algorithm, you could reproduce them. For most casual purposes, that’s fine.

How can I get 8 random numbers without a computer?

Roll a 10-sided die eight times for digits 0–9, or use a deck of cards—shuffle and draw 8 cards, mapping each card to a number. For 1–100, use two d10s as tens and ones.

Why do I always get the same numbers in Excel?

Excel’s RAND() recalculates every time the sheet changes. If you don’t see new numbers, press F9 to recalculate. If you want to freeze them, copy and paste as values. Also, if you’re using RANDBETWEEN with a fixed seed, it won’t change—Excel doesn’t allow you to set a seed directly, but you can use a helper column with a formula like =MOD(SEQUENCE(8)*12345,1000) for a reproducible list.

Is it okay to use random numbers for a password?

Yes, but only if they come from a cryptographically secure generator. A list of 8 random digits is a weak password—use at least 12 characters with letters and symbols. For security, use a password manager that generates passwords with a CSPRNG.

What is the difference between random and pseudorandom?

Random means each outcome is independent and unpredictable, even with full knowledge of the process. Pseudorandom means the sequence looks random but is generated by a deterministic algorithm. Pseudorandom numbers are fine for simulations and games, but not for security.

How do I pick 8 unique random numbers from 1 to 100?

In Python, use random.sample(range(1,101), 8). In Excel, use =SORTBY(SEQUENCE(100),RANDARRAY(100)) and take the first 8 rows—but remember it recalculates. Or use random.org’s “Sequence Generator” to get a list without repeats.

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.