Random Number Generator 1–6

Get a number from 1 to 6, each with a 1 in 6 chance: the same odds as one fair six-sided die.

1 to 6

More options

History (this visit only)

Nothing yet. Results appear here.

    Quick answer: Each number from 1 to 6 has a 1 in 6 (about 16.7%) chance, with an average of 3.5. Set How many numbers to 2 to roll two dice at once: a total of 7 is the most common, at 6 in 36 (16.7%).

    Examples

    You want to…Setting
    Replace a lost die in a board game1 number
    Roll two dice and add them2 numbers (sum shown)
    Pick one of six groups or stations1 number
    Put 6 people in a random order6 numbers, no repeats

    How to use it

    1. Press Generate for one number from 1 to 6.
    2. For several numbers, open More options, set How many numbers (up to 6 with No repeats) and choose an order.
    3. Change Min or Max at any time to use a different range.
    4. Copy the results, or press Present to show them full screen.

    Good uses for 1–6

    • Board games when a die is missing or rolling one is awkward (on a train, or in a video call).
    • Probability lessons: generate 60 numbers and compare how often each face appears with the expected 10.
    • Six-way choices: number your options 1–6 and let the result decide.

    Worth knowing

    • Roll 4 times and the chance of at least one 6 is about 51.8%: the classic “de Méré” bet.
    • Even with fair odds, 60 rolls will rarely give exactly ten of each number. Some unevenness in small samples is expected.

    How the numbers are chosen

    Your browser’s cryptographic random source (crypto.getRandomValues) supplies 32-bit random values. We map them onto your range with rejection sampling: any value that would make some numbers slightly more likely than others is thrown away and redrawn. The common shortcut (value % range) skips this step and adds a small bias. For No repeats we use a partial Fisher–Yates shuffle, which draws only as many numbers as you ask for, even from a huge range.

    The result is fixed before the rolling animation starts. The animation is decoration and never changes the outcome. Everything runs on your device: nothing you enter or generate is sent to us. More on how it works.

    Limits

    • Whole numbers only, between about −9 quadrillion and +9 quadrillion (JavaScript’s exact integer range), with a range width of up to 253.
    • Up to 10,000 numbers per click. With No repeats, you can’t ask for more numbers than the range contains.
    • Fine for games, classrooms and everyday choices. Not certified for lotteries, regulated prize draws or generating security keys.

    Need a different range? Use the main random number generator.

    Questions

    Is it the same as rolling a die?

    The odds are the same as a fair six-sided die. A full dice roller, with real dice faces, several dice types and totals, is in development.

    How do I roll two dice?

    Open More options and set How many numbers to 2. Leave No repeats off, because real dice can match.

    Why so many repeats?

    With six outcomes, repeats come quickly: three rolls already have a 44.4% chance of including at least one match.

    References

    1. W3C. Web Cryptography Level 2: Crypto.getRandomValues(). World Wide Web Consortium specification.
    2. Daniel Lemire. Fast Random Integer Generation in an Interval. ACM Transactions on Modeling and Computer Simulation 29(1), 2019 (discusses modulo bias and rejection).
    3. Richard Durstenfeld. Algorithm 235: Random permutation. Communications of the ACM 7(7), 1964.

    Page reviewed 30 November 2026.