Random Number Generator

    Generate random numbers for lotteries, classrooms, games, QA, simulations, and quick decisions. Set a range, choose quantity, switch between integers and decimals, remove duplicates, and copy or download the results instantly.

    Runs in your browserFree, no sign-upUpdated October 2026

    Quick presets

    Range
    Number Type
    Allow Repeats
    Sort Results

    100 numbers available in this range; no repeats in this batch

    Generated Numbers

    Generate a set to see results here.

    Your next set of random numbers appears here. Click any number to copy it on its own.

    Previous Results (0)

    Stored on this device only

    No local history yet. Each run is saved on this device, up to 8 entries, and can restore its settings in one click.

    How to use the random number generator

    Most of the time you set a range and press the button. This guide is for the cases that need no repeats, provable fairness or bulk data, and explains where each option stops.

    What each option does

    OptionWhat it doesKeep in mind
    Minimum, maximumThe range to draw fromBoth ends are included: 1 to 100 can return 1 and 100
    CountHow many results in this batchUp to 10,000 at a time
    Number typeIntegers or decimalsDecimals keep 0 to 6 places
    RepeatsWhether a value can appear twice in one batchApplies to the current batch only; the next run can repeat earlier numbers
    SortKeep draw order, ascending or descendingKeep the original order when you announce winners in sequence
    ExcludeSkip specific numbersExcluded values outside the range are ignored
    SeedMakes the result reproducibleAny text works and it is case-sensitive

    How no-repeat draws work

    With repeats turned off, the generator remembers what it has drawn in this batch and redraws on a duplicate, so no value appears twice. That needs enough numbers in the range: the available count is maximum minus minimum plus one, minus the excluded values.

    For example, 1 to 30 with 4 and 13 excluded leaves 28 numbers. Asking for 30 unique values is not possible, so the form says so right away and the generate button stays disabled.

    Seeds: results anyone can reproduce

    Without a seed every run is different. With a seed, the same settings always return the same numbers, on any device and for anyone. That answers the question of how to prove a draw was not rigged: publish the seed and settings first, and everyone can check the result afterwards.

    • Announce the seed in advance, for example the event name plus a date: team-friday-1024.
    • Generate in front of everyone with the agreed range and count.
    • Anyone who enters the same settings and seed gets the same set. “Copy settings” below the results turns the whole setup into one line you can share.

    How random is it

    Without a seed, numbers come from the browser's built-in crypto.getRandomValues, a cryptographic random source provided by the operating system that is much harder to predict than Math.random. With a seed, the generator switches to the mulberry32 pseudo-random algorithm, which aims for reproducibility rather than unpredictability.

    Both are uniform across the range and are fine for giveaways, teaching and games. For legally binding lotteries, passwords or keys, use a dedicated system.

    Common setups

    UseSuggested settings
    GiveawayRange by number of entrants, no repeats, keep original order, publish the seed
    Class roll call1 to class size, no repeats, then add called numbers to Exclude
    Dice rolls1 to 6, repeats allowed, count equals the number of rolls
    Teams1 to total people, count equals total, no repeats, split every N in order
    Test dataDecimal mode with a fixed seed so every test run gets the same data

    Decimal mode details

    Decimal mode first scales the range into integer steps by the number of places. With 0 to 1 and 3 places, it draws an integer from 0 to 1000 and divides by 1000, so both 0.000 and 1.000 can appear and every value is equally likely.

    Exclusions are compared at the same precision: with 2 places, excluding 0.5 excludes 0.50. From 0.1 to 0.15, one decimal place leaves only 0.1, while three places give 51 values.

    FAQ

    5 questions people ask most. Anything else, write to [email protected]

    How does this random number generator work?

    This tool generates numbers directly in your browser. It lets you control the minimum and maximum range, quantity, integer or decimal mode, duplicate handling, sorting, excluded values, and optional seeds for repeatable output.

    Can I generate numbers without repeats?

    Yes. Turn off repeats and the generator will avoid duplicate values. If your requested amount is larger than the available range after exclusions, the tool will prompt you to widen the range or reduce the count.

    Does it support decimal numbers?

    Yes. Switch to decimal mode, choose the number of decimal places, and the tool will generate values aligned to that precision between your minimum and maximum range.

    What is the seed option for?

    A seed makes the output reproducible. Using the same seed with the same settings produces the same sequence again, which is useful for testing, game logic, and classroom demos.

    Is my data sent to a server?

    No. The generator runs locally in the browser, and your recent history is stored only on your device for convenience.