Random Number 1-7: Pick One, How It Works, Fairness

How-to basics · Updated November 23, 2026

The random number is 4. If you need a different one, any number from 1 to 7 is equally likely when the selection is truly random. This article explains how random numbers in this range are generated, why 7 is a common choice, and how to pick one fairly yourself.

Why 7? The Classic Choice in Games and Surveys

The range 1–7 appears often because 7 is a small prime number. It has no divisors other than 1 and itself, which makes it awkward for simple binary or decimal shortcuts. In tabletop games, a d7 (seven-sided die) is rare, so players often simulate it with a d8 and reroll 8s. In surveys, a 1–7 scale is a standard Likert scale: 1 means “strongly disagree” and 7 means “strongly agree.” The odd number gives a neutral midpoint (4), which lets respondents avoid taking a side. That same structure makes 4 the median and the most “average” result you can get from a uniform 1–7 draw.

What “Random” Actually Means Here

In mathematics, a random number from 1 to 7 implies a uniform distribution: each integer has a probability of exactly 1/7 ≈ 14.3%. No number is more likely than another. In practice, human-chosen numbers are not random—people avoid extremes and pick 3 or 4 far more often. True randomness requires a physical or algorithmic source. A fair seven-sided die, a computer’s random number generator (RNG), or a cryptographic generator all qualify. The key property is independence: knowing the previous number gives you no clue about the next one.

How Computers Generate a Random Integer 1–7

Most programming languages provide a function like rand() that returns a floating-point number between 0 (inclusive) and 1 (exclusive). To get an integer from 1 to 7, the standard formula is:

  • Multiply the random float by 7: result is between 0 and 6.999…
  • Take the floor (round down) to get an integer from 0 to 6.
  • Add 1 to shift the range to 1–7.

In Excel, the formula =RANDBETWEEN(1,7) does this directly. In Python, random.randint(1, 7) works the same way. These use pseudorandom algorithms—they start from a seed and produce a long sequence that looks random but is deterministic. For security purposes (like picking a lottery number), use a cryptographically secure RNG, which draws from system entropy.

How to Pick a Fair Random 1–7 Without a Computer

If you need a random number 1–7 and only have everyday objects, here are reliable methods:

  1. Seven-sided die: Rare but exists. Roll it directly.
  2. Eight-sided die (d8): Roll; if you get 8, reroll. This gives each number 1–7 an equal chance because you discard the 8.
  3. Six-sided die + coin: Roll a d6. Flip a coin. If heads, keep the d6 result. If tails, add 1 to the d6 result, but if that gives 7, treat it as 1. This is not perfectly uniform because 1 gets two outcomes, so it’s slightly biased—use the d8 method instead for exact fairness.
  4. Playing cards: Take cards Ace through 7 (or 1–7). Shuffle well and draw one. Replace and reshuffle each time.
  5. Digital assistant: Ask a phone’s voice assistant for a number between 1 and 7; it uses a software RNG.

The d8 reroll method is the simplest exact approach. The coin method is not recommended if fairness matters.

Common Misconception: “Random” Means “Different Each Time”

People often expect a random sequence to have no repeats, but true randomness allows the same number to appear multiple times in a row. The probability of getting two 4s in a row is (1/7)² ≈ 2%, which is small but not impossible. Over 100 draws, you’d expect each number to appear about 14 times, but some will appear 10 times and others 18. That variation is normal. If a sequence has exactly equal counts, it is suspicious—it might have been artificially balanced. Also, the phrase “random number 1–7” usually implies a single draw, not a sequence, so the result is simply one of the seven numbers.

Using a 1–7 Random Number in Real Life

Beyond games, this range is used for:

  • Decision-making: Assign options to numbers 1–7 and let the random pick decide for you, removing bias.
  • Sampling: In statistics, selecting a random participant from a list of seven requires a uniform 1–7 draw.
  • Cryptography: Generating a random digit in a small range is a building block for larger random numbers.
  • Psychology experiments: Researchers use 1–7 scales to measure attitudes; random assignment of participants to conditions might use this range.

For any serious use, ensure the generator is unbiased. A simple mental “pick a number” is not random—studies show people choose 3 or 4 disproportionately.

Comparing Different Random Ranges

Why not 1–5 or 1–10? The number 7 is awkward because it doesn’t divide evenly into 2, 5, or 10, which are bases for many dice and coins. For a d6, you can simulate 1–3 by dividing by 2, but 1–7 requires rejection sampling (rerolling out-of-range results). A 1–10 range is easier with a d10 or a d6+coin, but 1–7 forces you to think about fairness. In programming, generating 1–7 from a uniform 0–1 float is trivial, but from a binary source you’d need to generate 3 bits (0–7) and reject 0 or 8 depending on your convention. That rejection step is the core of the d8 method.

Frequently Asked Questions

Is 4 the most common random number between 1 and 7?
No. In a truly uniform distribution, every number has the same 1/7 chance. However, when humans are asked to “pick a random number,” studies show 3 and 4 are chosen more often because they feel central. So 4 is common in human picks, but not in algorithmic randomness.

Can I use a regular six-sided die to get 1–7?
Yes, but you need an extra step. Roll a d6 to get 1–6. Then flip a coin. If heads, keep the d6 value. If tails, add 1, but if that gives 7, treat it as 1. This is slightly biased because 1 has two ways to occur. For exact fairness, use a d8 and reroll 8s.

Why does my calculator give the same “random” number every time?
Many calculators use a fixed seed for their RNG, so the sequence repeats after a reset. For example, a TI calculator’s rand function starts from a default seed. To get different numbers, you must seed it with something like the time. Excel’s RAND recalculates each time, but RANDBETWEEN also changes on recalculation. If you need a permanent random number, copy and paste as values.

What is the probability of rolling a 7 on a d8 if you reroll 8s?
You roll a d8. If you get 8, you roll again. Each attempt has a 1/8 chance of landing on 7, but you might have to reroll. The overall probability is still 1/7 because you eventually stop on a non-8 result, and all seven outcomes (1–7) are equally likely. The expected number of rolls is 8/7 ≈ 1.14.

Is picking a random number 1–7 the same as picking a random number 0–6?
Not exactly. 0–6 includes zero, which often has different connotations (like a score of 0). The probability distribution is identical—each integer has 1/7—but the labels differ. For a Likert scale, 1–7 is standard because 0 feels like “no answer.” For programming, 0–6 is often more convenient because arrays are zero-indexed.

Can I make a random 1–7 number using only a coin?
Yes, but it’s inefficient. Flip a coin three times to get a binary number from 0 (TTT) to 7 (HHH). If you get 0, flip again. That gives you 1–7 with equal probability. Each set of three flips has an 8/8 chance of a valid result, but 0 forces a redo, so the expected number of flips is 3 × (8/7) ≈ 3.43 flips.

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.