Pick random whole numbers in any range, one or many at a time, with or without repeats, sorted if you like. The numbers are drawn in your browser by its secure random generator, never on our server.

Not drawn yet
From 1 to 100 · each number: 1%

Range and count

History

    Your draws appear here. They stay in this tab unless you turn on “Save on this device”.

    Share this setup

    The range, the count and the options go into the link.

    More in Random and decisions

    What this tool does

    This Random Number Generator produces a single whole number between 1 and 100 every time you press Pick. The range is fixed, so there are no boxes to fill in: just click and read the big number. A small counter labelled "Pick # N" keeps track of how many numbers you have drawn since the last reset, which is handy for games, raffles, classroom activities, sampling, or simply making a decision.

    Grid of 100 equal squares with one highlighted, showing each outcome equally likely
    Each of the 100 numbers is equally likely, a 1% chance per pick.

    How to use it

    The range starts at 1 to 100, so pressing Generate or the Space bar gives one whole number from 1 to 100, each with a 1% chance. Change From and To for any other range, including negative numbers, and How many to draw up to 10,000 numbers at once. Tick No repeats to get different numbers only, and choose an Order to sort them.

    Each press is numbered as a round, and the history keeps every draw of this tab; Clear history starts again. Copy result copies the numbers, Full screen shows them to a class, and Copy link shares the range and options. The numbers are drawn in your browser and never sent to a server.

    How fair is the draw?

    Every result comes from crypto.getRandomValues, the cryptographic random generator built into your browser. The tool turns those numbers into an outcome with rejection sampling, so no outcome gets an extra chance from a leftover remainder, and the animation only replays a result that was decided before it started. Nothing is sent to our server.

    Random does not mean even in the short run: in ten coin flips, seven heads or more happens about one time in six. Over many draws the counts settle near the stated chances. The tool cannot prove to someone else that you did not draw again, so for a prize draw, draw in front of the people taking part.

    Advertisement

    The formula explained

    The generator uses the standard uniform-integer formula: $$\text{randomNumber} = \text{min} + \left\lfloor U \times (\text{max}-\text{min}+1) \right\rfloor$$ where \(U\) is a pseudo-random float in the half-open interval [0, 1). With min = 1 and max = 100 this becomes $$\text{randomNumber} = 1 + \left\lfloor U \times 100 \right\rfloor$$ Using floor (not rounding) keeps every integer equally likely — rounding would bias the two endpoints. Because \(U\) never quite reaches 1, \(\left\lfloor U \times 100 \right\rfloor\) tops out at 99, so the result tops out at exactly 100 and never reaches 101. Every number therefore has the same probability of $$P = \frac{1}{100} = 0.01 = 1\%$$

    Diagram mapping a uniform value U between 0 and 1 onto integers 1 to 100
    A uniform random value U is scaled and floored to produce an integer from 1 to 100.

    Worked example

    Suppose the engine produces \(U = 0.752\). Then $$\text{randomNumber} = 1 + \left\lfloor 0.752 \times 100 \right\rfloor = 1 + \left\lfloor 75.2 \right\rfloor = 1 + 75 = 76$$ shown as "Pick # 1". Press Pick again with \(U = 0.009\) and you get \(1 + \left\lfloor 0.9 \right\rfloor = 1 + 0 = 1\), shown as "Pick # 2".

    Probability Reference for Picks from 1 to 100

    This generator picks a uniform random integer from 1 to 100, so each of the 100 values has the same chance. The table shows exact probabilities for a single pick.

    Event Favorable numbers Probability
    A specific number (e.g. 42) 1 1/100 = 1%
    Even number 50 50%
    Odd number 50 50%
    Number from 1 to 10 10 10%
    Number from 1 to 50 50 50%
    Multiple of 5 20 20%
    Prime number (25 primes up to 100) 25 25%

    Chance of hitting a specific number at least once

    For n independent picks, the probability that a chosen number appears at least once is:

    $$P = 1 - (0.99)^n$$

    Picks (n) Calculation Probability
    1 \(1 - 0.99\) 1%
    10 \(1 - 0.99^{10}\) ≈ 9.6%
    69 \(1 - 0.99^{69}\) ≈ 50%
    100 \(1 - 0.99^{100}\) ≈ 63.4%

    Note that even after 100 picks, a specific number is not guaranteed: there is still about a 36.6% chance it never appears.

    Advertisement

    Interpreting Your Random Results

    • Every pick is independent. The generator has no memory. If 77 just came up, the chance of 77 on the next pick is still exactly 1%. Numbers are never "due" or "overdue."
    • Streaks and repeats are normal. Seeing the same number twice in a row (probability 1%), several even numbers in a row, or a cluster of low numbers is an expected part of randomness, not a sign of a fault.
    • Expected value. The long-run average of a pick is \(\frac{1 + 100}{2} = 50.5\). Individual picks will vary widely around this value, and any single result can be anywhere from 1 to 100.
    • Small samples look uneven. With only a handful of picks, the results will not look evenly spread across the range. Only over many picks (the law of large numbers) do the frequencies of each number approach 1% and the average approach 50.5.
    • Repeats happen sooner than most people expect. By the birthday problem, the chance of at least one repeated number among n picks is \(1 - \frac{100!}{(100-n)!\,100^n}\). With 100 possible values this is about 50% at 12 picks, about 87% at 20 picks, and about 96% at 25 picks.

    Use the results for games, drawing lots, classroom activities or sampling ideas. This is general information, not personal, financial or professional advice, and a simple browser-based generator should not be relied on for security-sensitive or regulated purposes such as gambling or cryptography.

    FAQ

    Can the same number come up twice? Yes. Each pick is independent, so duplicates across separate picks are normal and valid.

    Are 1 and 100 both possible? Yes, both endpoints are included. You can draw exactly 1 or exactly 100.

    Is this cryptographically secure? No. It is a pseudo-random generator (PRNG) suitable for games and everyday choices, but not for security, lotteries with money, or cryptography.

    Last updated:

    Most popular in Math and Statistics

    View all Math and Statistics calculators