Random Number Generator 1–100

Press Generate for a number from 1 to 100. Every number, including 1 and 100, has exactly the same chance.

1 to 100

More options

History (this visit only)

Nothing yet. Results appear here.

    Quick answer: Each number from 1 to 100 has a 1 in 100 (1%) chance per draw. With repeats allowed, the average result over many draws is 50.5. Tick No repeats to draw several different numbers, like pulling numbered tickets from a hat.

    Examples

    You want to…Setting
    Guess-my-number game1 number, 1–100
    Pick 5 different raffle tickets numbered 1–1005 numbers, no repeats
    Choose a random page from the first 100 pages of a book1 number
    Shuffle 100 items into a random order100 numbers, no repeats, as drawn

    How to use it

    1. Press Generate for one number from 1 to 100.
    2. For several numbers, open More options, set How many numbers (up to 100 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–100

    • Guessing games: one person secretly generates a number and others guess with “higher” or “lower” hints. Halving the range each time finds any number in at most 7 guesses.
    • Classroom sampling: pick 10 different student or question numbers out of 100 for a quick spot check.
    • Percent-chance rolls in tabletop games: a result of 1–25 is a 25% event, 1–50 is 50%, and so on.

    Worth knowing

    • Draw 10 numbers from 1–100 with repeats allowed and there is about a 37.2% chance that at least two match. At 12 draws it is almost a coin flip (49.7%). Repeats turn up sooner than most people expect.
    • With No repeats on, you can draw at most 100 numbers. Asking for 101 is rejected, not quietly filled with duplicates.

    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 100 included?

    Yes. Both ends are inclusive, so 1 and 100 are as likely as any other number.

    Can I get the same number twice?

    Only if No repeats is off. Each draw is then independent, just like rolling a 100-sided die twice.

    Can I use this for a raffle?

    For an informal draw, yes. We do not offer audited or certified draws, so do not use it where regulations require a verified process.

    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.