Random Number Generator

Set a minimum and a maximum, then press Generate. Both ends are included, every number is equally likely, and you can draw up to 10,000 at once.

1 to 100

More options

History (this visit only)

Nothing yet. Results appear here.

    Quick answer: enter your lowest and highest numbers and press Generate. Each whole number in the range, including both ends, has an equal chance of 1 in (max − min + 1). Open More options to draw several numbers, block repeats or sort the results.

    Popular ranges

    Each preset page explains the odds and common uses for that range:

    Examples

    You want to…MinMaxOptions
    Pick a winning ticket from 250 sold12501 number
    Choose 6 different numbers for a classroom bingo board1306 numbers, no repeats, smallest first
    Simulate a temperature change−10101 number (negatives work)
    Random order for 12 presenters11212 numbers, no repeats
    Pick a random year in the 1900s190019991 number

    How to use it

    1. Type the lowest number in Min and the highest in Max. Negative numbers are fine.
    2. Press Generate, or press Enter in any box.
    3. For more than one number, open More options and set How many numbers. Tick No repeats to make every number different, and choose an order.
    4. Use Copy to copy the results (one per line), or download the session’s history as a CSV file.
    5. Present switches to full screen and hides the settings, which is useful on a classroom projector.

    What people use it for

    • Fair choices: number the options, then let the generator decide.
    • Teaching: probability experiments, picking question numbers, choosing who answers next.
    • Games: a stand-in for dice of any size, or setting a secret target number.
    • Sampling: picking rows to spot-check from a numbered list, with no repeats.

    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.

    Questions

    Is this random number generator truly random?

    It uses your browser’s cryptographically secure generator, which browsers seed from hardware and operating-system entropy. It is unpredictable in practice and far stronger than Math.random(). It is still a computer algorithm, not a physical process such as radioactive decay.

    Are the minimum and maximum included?

    Yes. A range of 1 to 10 can return 1 or 10, and each of the ten numbers has a 10% chance.

    How do I stop numbers repeating?

    Open More options and tick No repeats. Each click then returns different numbers. Repeats across separate clicks are still possible; draw everything you need in one click.

    Do you store my numbers?

    No. History lives in this browser tab only and disappears when you close or reload it. We do not log your inputs or results.

    Can I use decimals?

    Not yet. This tool returns whole numbers. A separate decimal generator with exact precision is planned.

    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.
    4. Donald E. Knuth. The Art of Computer Programming, Volume 2: Seminumerical Algorithms (3rd ed.), §3.4.2. Addison-Wesley, 1997.

    Page reviewed 30 November 2026.