Random tools · Free tool

Random Number Generator 1-8: Pick a Number 1 to 8

Quick answer

Press Generate to get a random whole number from 1 to 8. Each number has exactly a 1 in 8 chance (12.5%), and results never depend on earlier draws. Tick No duplicates to draw several different numbers for a raffle.

Key facts
Range1 to 8 (8 possible numbers)
Chance of any one number1 in 8 (12.5%)
Same as rollingA d8
Draws to see every number at least once (average)about 21.7

1 to 8 works like rolling a d8, the die used for many weapon-damage rolls in tabletop games, and for choosing one of eight players, lanes or teams. Each number has a 12.5% chance.

Random number 1–8

?

    Chance of any one number: 1 in 8

    ## How fair is a random number from 1–8?

    Every whole number from 1 to 8 has the same chance on every draw: 1 in 8, or 12.5%. The generator uses crypto.getRandomValues, the cryptographically secure random source built into every modern browser, and throws away the rare raw values that would make some numbers slightly more likely than others (a fix for what programmers call modulo bias). Nothing is sent to a server and nothing is remembered between draws.

    P(any one number) = 1 ÷ 8 = 12.5%

    Each draw is independent, so a number that just came up is exactly as likely to come up again.

    Chance of getting a specific number at least once

    If you need one particular number, say 5, here is how likely it is to appear at least once as you keep drawing:

    Range 1–8: at least one hit in a number of draws
    DrawsChance your number appears at least once
    112.5%
    223.44%
    333.01%
    548.71%
    1073.69%
    865.64%

    The formula is 1 − (7/8)^draws. Notice that even after 8 draws you are not guaranteed to see your number: the chance is only about 65.64%.

    Chance of a repeated number

    When you draw several numbers with duplicates allowed, repeats come sooner than most people expect:

    Range 1–8: chance of at least one repeat
    Numbers drawnChance at least two are the same
    212.5%
    334.38%
    458.98%

    With 8 possible numbers you only need 4 draws for a repeat to be more likely than not. If repeats would spoil your draw, tick No duplicates.

    Using it for a raffle or giveaway

    1. Number your entries from 1 to 8 (or set Min and Max to match your list).
    2. Set How many numbers to the number of winners and tick No duplicates.
    3. Press Generate once, in front of your audience or on a screen recording, and use the first result.

    Drawing again until you get a result you like isn't random any more, so decide the rules before you press the button.

    Other ranges

    1–10 · 1–100 · 1–4 · 1–6 · 1–20 · 1–3 · 1–5 · 1–30 · 1–50 · 4-digit · Custom range

    For dice with any number of sides, use the online dice roller. To see how casino games turn random numbers into results, read our odds vs probability guide.

    Frequently asked questions

    Is this 1–8 number generator really random?

    It uses your browser's cryptographic random generator (the same source browsers use for encryption keys) with rejection sampling, so every number from 1 to 8 has exactly the same 1 in 8 chance. Previous results never affect the next one.

    What are the odds of getting the same number twice in a row?

    For any specific number, it's 1 in 64. For any repeat of whatever came up first, it's 1 in 8 (12.5%), because the second draw just has to match the first.

    How many draws until a number repeats?

    With 8 equally likely numbers, there's a better than even chance of at least one repeat after 4 draws. That surprises people, but it's the same maths as the birthday problem.

    Can I pick several numbers with no duplicates?

    Yes. Set how many numbers you want and tick 'No duplicates'. That's the right setting for raffles and giveaways, where each ticket should only win once.

    Sources

    1. Crypto: getRandomValues() method — MDN Web Docs