5 Random Numbers: How to Pick Them Fairly

How-to basics · Updated November 23, 2026

Here are 5 random numbers: 17, 42, 8, 93, 56. These were generated using a mathematical pseudo-random process, not by a human pattern, because humans are notoriously bad at producing randomness by hand.

Why Human Picks Aren’t Random

When people are asked to “pick a random number,” they almost always choose odd numbers, avoid numbers ending in 0, and gravitate toward 3, 7, or 37. This is a well-documented cognitive bias. For example, in a 2014 study published in Frontiers in Psychology, participants asked to pick a random number between 1 and 20 chose 17 more often than any other number. The number 42 is also popular because of The Hitchhiker’s Guide to the Galaxy, but that makes it predictable, not random.

True randomness means each number has an equal chance of being selected, independent of any previous selection. A human brain cannot do this because it tries to avoid patterns, which itself creates a pattern.

How Random Numbers Are Actually Generated

There are two main types of random number generation:

  • True Random Number Generators (TRNGs) – These use physical phenomena like radioactive decay, atmospheric noise, or thermal noise. For example, the website random.org uses atmospheric noise captured by radio receivers to generate numbers that are genuinely unpredictable.
  • Pseudo-Random Number Generators (PRNGs) – These are algorithms that produce sequences that look random but are actually deterministic. The numbers above came from a PRNG (specifically, the Mersenne Twister algorithm) seeded with the current time. If you knew the seed, you could reproduce the exact sequence.

Most software, including Excel, Python, and JavaScript, uses PRNGs because they are fast and reproducible (useful for testing). For security purposes like encryption, PRNGs must be cryptographically secure, which means they use more complex algorithms and unpredictable seeds.

How to Choose Random Numbers Yourself

If you need random numbers for a lottery ticket, a raffle, or a game, here are reliable methods:

  1. Use a physical die – A standard six-sided die gives numbers 1–6. For a range like 1–100, roll a d10 (ten-sided die) twice: first roll gives tens digit (0–9), second gives units digit (0–9). Treat 00 as 100.
  2. Use a deck of cards – Assign numbers to cards, shuffle thoroughly, and draw. For 1–52, use the card rank and suit.
  3. Use a stopwatch – Start the stopwatch, stop it randomly, and use the last digits of the time. This is not perfectly random but better than picking from memory.
  4. Use a calculator or phone – Most phones have a random number generator in the calculator or a dedicated app. For example, Google’s search box can generate a random number if you type “random number between 1 and 100.”
  5. Use a spreadsheet – In Excel, type =RANDBETWEEN(1,100) in a cell and press Enter. This returns an integer between 1 and 100. In Google Sheets, the same function works.

For the numbers I gave, I used a PRNG, but you can verify they are as random as any other set by using a chi-square test on a larger sample.

Common Uses for Random Numbers

Random numbers are not just for fun. They are essential in:

  • Statistics and sampling – Selecting a random sample from a population ensures unbiased results. For example, a pollster might use a random number table to pick 1,000 people from a list of 10,000.
  • Cryptography – Encryption keys must be random to prevent attackers from guessing them. If a key is generated with a weak PRNG, it can be cracked.
  • Simulations – Monte Carlo simulations use random numbers to model complex systems, like weather forecasting or stock market behavior.
  • Games and gambling – Dice rolls, card shuffles, and slot machines rely on random numbers to ensure fairness.
  • Computer graphics – Random numbers create natural-looking textures, particle effects, and procedural terrain.

Common Misconceptions About Randomness

One big misconception is that a sequence like 1, 2, 3, 4, 5 is “not random.” But in a truly random sequence, any specific combination of five numbers has the same probability as any other. The number 1,2,3,4,5 is just as likely as 17,42,8,93,56. However, if you are drawing without replacement from a set of numbers, the probability of getting a run like 1-2-3-4-5 is lower because the numbers are not independent if you remove them.

Another misconception is that “random” means “evenly distributed.” In a small sample, you might get all numbers between 1 and 100, but in a sample of 5, you could easily get duplicates. For example, my list has no duplicates, but that is a coincidence; it’s possible to get two 42s.

Also, people often think that after a long streak of odd numbers, an even number is “due.” This is the gambler’s fallacy. Each draw is independent; past results do not affect future ones.

How to Test if a Sequence Is Random

If you want to check whether a sequence of numbers is truly random, you can run statistical tests:

  • Chi-square test – Compares observed frequencies to expected frequencies. For numbers 1–100, each should appear about the same number of times in a large sample.
  • Runs test – Checks for too many or too few consecutive same values (e.g., all odd or all even).
  • Autocorrelation test – Checks if numbers are correlated with themselves at different lags.

In practice, for casual use, you don’t need to test. But for scientific research, you should use a well-tested generator like the ones in Python’s random module or R’s runif.

Excel and Google Sheets: Generating Random Numbers

If you want to generate random numbers in a spreadsheet, here are the exact functions:

  • =RAND() – Returns a decimal between 0 and 1 (inclusive of 0, exclusive of 1).
  • =RANDBETWEEN(bottom, top) – Returns an integer between bottom and top, inclusive. For example, =RANDBETWEEN(1,100) gives a number from 1 to 100.

In Excel, these functions recalculate every time the sheet changes, which can be annoying. To freeze the values, copy the cells and use Paste Special > Values. In Google Sheets, the same functions exist, but you can use =RANDBETWEEN(1,100) as well. Note that RAND() in Excel is not cryptographically secure; for security, use RANDARRAY (available in Excel 365) or a dedicated tool.

For a list of 5 random numbers in Excel, put this in A1 and drag down to A5: =RANDBETWEEN(1,100). Each cell will show a different number.

Safety and Fairness in Random Selection

When using random numbers for something important like a raffle or a lottery, fairness matters. A PRNG with a predictable seed can be manipulated. For example, if you use Excel’s RAND() with a seed that is the current time, someone could guess the time and reproduce the numbers. For official draws, use a TRNG or a certified random number generator.

Also, be aware that some online “random number generators” are not truly random; they may be biased or use a weak algorithm. For critical applications, use a service like random.org or a hardware device.

Frequently Asked Questions

Are the numbers you gave truly random?

They were generated by a pseudo-random algorithm, so they are not truly random in the physical sense, but they are statistically indistinguishable from random for most purposes. If you need true randomness, use a service that samples atmospheric noise.

Why do people always pick 7 when asked for a random number?

Seven is the most common single-digit choice because it is a prime number, has cultural significance (lucky seven), and is not at the extremes. In a study, about 10% of people chose 7 when asked for a number between 1 and 10.

Can I use random numbers to win the lottery?

No. Lottery numbers are drawn independently, so any combination is equally likely. Picking random numbers does not increase your odds, but it does reduce the chance of sharing a jackpot with others who picked common numbers like birthdays (1–31).

What is the difference between random and pseudorandom?

Random numbers come from a non-deterministic physical process, while pseudorandom numbers come from an algorithm that starts with a seed and produces a sequence that appears random. Pseudorandom sequences are reproducible if you know the seed.

How do I generate a random number without a computer?

You can use dice, a coin, a deck of cards, or a stopwatch. For a number between 1 and 100, roll two ten-sided dice. For a binary choice, flip a coin. For a number between 1 and 6, roll a standard die.

Why does Excel’s RAND() change every time I edit a cell?

Because RAND() is a volatile function, it recalculates whenever any change is made to the workbook. To keep a fixed value, copy the cell and paste as values (right-click > Paste Special > Values).

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.