Randomizer

Random Number Generator

Pick one or many numbers in any range, with or without duplicates. Fair, cryptographically random, nothing leaves your browser.

Set a range and press Generate.

Recent results

    About this random number generator

    A free, browser-based random number generator for any moment you need an unbiased number — a raffle winner, a lucky pick, a random sample, a starting player, a probability demo in class. Set a minimum and maximum, choose how many numbers you want, and press Generate. It can hand you a single number or a whole set, with or without duplicates.

    Every number is drawn using your browser's cryptographic random number generator, so the results are genuinely uniform across your range — no bias toward the low end, which is a common flaw in generators that take a shortcut with the modulo operator. There is no account, no ads, and no network request when you generate: the randomness comes from your own device, and nothing you generate is sent anywhere.

    How to use it

    1. Enter a minimum and maximum — any whole numbers, including negatives (for example −10 to 10, or 1 to 1,000,000).
    2. Set how many numbers you want.
    3. Choose No duplicates if every result should be distinct, and Sort results if you want them in ascending order.
    4. Press Generate. Copy the result with the Copy button, and find your recent results listed below.

    Your range, count, and options are stored in your browser's local storage, so they are still set the next time you open the tool.

    With duplicates or without: which to choose

    This is the setting that changes what "random" means for your task, and it is worth getting right.

    Duplicates allowed (the default) means each number is an independent draw — like rolling the same die over and over. The same number can come up more than once, because each pick knows nothing about the others. This is what you want for independent trials: simulating repeated rolls, generating test data, or any situation where repeats are legitimate outcomes.

    No duplicates means sampling without replacement — like drawing numbered balls from a bag and setting each one aside. Every result is distinct. This is what you want for draws where a number should appear at most once: picking several unique raffle tickets, selecting a random subset of numbered items, or choosing distinct lottery numbers. If you ask for more distinct numbers than the range contains — say, 20 unique numbers from 1 to 10 — the generator simply gives you all the available numbers, because there are not enough to fill the request.

    What people use a random number generator for

    • Raffles and giveaways. Number the entries, generate one or more winners with duplicates off, and the draw is fair and transparent.
    • Random sampling. Pick a representative subset from a numbered list — rows in a spreadsheet, survey respondents, quality-control checks.
    • Games and decisions. Choose who goes first, pick a mystery prize, or settle a choice when a coin or die is not the right shape for the question.
    • Teaching probability. Generate large batches to show how frequencies even out, or demonstrate sampling with and without replacement in a statistics lesson.
    • Everyday picks. A lucky number, a random page to read, a seat number — any time you would rather not choose yourself.

    If your options are people or words rather than numbers, the Random Name Picker draws from a pasted list; for a simple two-way choice, the Coin Flip is quicker; and for standard game dice, use the Dice Roller.

    Fair, free, and private

    Because the numbers are generated on your own device with cryptographic randomness, the results are both unbiased and impossible for anyone else to predict or influence — and there is nothing to send anywhere, which a reviewer can confirm in the browser's Network tab in seconds. It is completely free, with no account, no signup, and no advertising.

    Looking for other quick, fair tools? Try the Coin Flip, the Dice Roller, or the Random Name Picker — or browse the full tools index.

    Frequently asked questions

    Is this random number generator truly random?

    It uses the browser's cryptographic random number generator (crypto.getRandomValues) with rejection sampling, so numbers are drawn uniformly across your range with no modulo bias toward the low end. This is the same class of randomness used for security tokens — far stronger than the ordinary Math.random used by many simple generators. It is technically pseudo-random but unpredictable in practice, and every number in the range is equally likely.

    Can I generate several numbers at once?

    Yes. Set how many numbers you want and they are generated together. Choose whether duplicates are allowed: with duplicates on, each number is an independent draw and can repeat; with duplicates off, you get a set of distinct numbers with none repeated — useful for lottery-style draws or picking unique tickets. You can also sort the results in ascending order.

    What range of numbers can I use?

    Any whole-number range you type into the minimum and maximum fields, including negative numbers — for example −10 to 10, or 1 to 1,000,000. The minimum must be less than or equal to the maximum. If you ask for more unique numbers than the range can hold, the count is automatically capped at the number of values available.

    What is the difference between allowing duplicates or not?

    Allowing duplicates means each pick is independent — like rolling the same die repeatedly, so the same number can come up more than once. Not allowing duplicates means sampling without replacement — like drawing numbered balls from a bag and not putting them back, so every result is distinct. Use duplicates for independent trials and no-duplicates for draws where each number should appear at most once.

    Is it private and free?

    Yes to both. The generator runs entirely in your browser with no account, no signup, and no ads. There is no network request when you generate numbers — the randomness comes from your own device, so nothing you generate is sent anywhere. Your settings and recent results are stored only in your browser's local storage.

    Is it good enough for a raffle or giveaway?

    For informal raffles, giveaways, and prize draws, yes — number your entries, generate one or more winners with duplicates off, and the draw is fair and unbiased. For a legally regulated lottery or a high-stakes draw you should follow whatever verified, auditable process the rules require; this tool does not produce a certificate or audit trail.