Random Number Generator

Generate one or many random numbers between any minimum and maximum, including unique numbers, sorted results, multiple sets and decimals. Everything runs in your browser — no account and no waiting.

Random number generator

Set a range and press Generate.

Advanced Options
1–1000 numbers per set.
Generate up to 10 independent sets.
Comma-separated values. Excluded numbers are never generated.

Local history

History is stored only in this browser. Nothing is uploaded.

No generations yet.

    Randomness is generated locally using the browser Web Crypto API.

    How to Use

    1. Enter the minimum and maximum for your range, for example 1 and 100.
    2. Press Generate Random Number — the result appears immediately, with no page reload.
    3. Open Advanced Options for quantity, unique numbers, sorting, multiple sets, exclusions and decimals.
    4. Copy, download or share the result; every generation is kept only in your local browser history.

    How It Works

    Every value comes from crypto.getRandomValues(), the browser Web Crypto API. The browser seeds the generator from operating-system entropy, so the output is suitable for games, classroom draws, testing and everyday decisions.

    Mapping a 32-bit random value onto an arbitrary range with a simple % operation would make low values slightly more likely. To prevent that, the generator uses rejection sampling: draws that fall outside the largest exact multiple of the range are discarded and redrawn. Requests for unique numbers use a partial Fisher–Yates shuffle for small ranges and a sparse algorithm for huge ranges, so memory use stays low even for ranges like 1–1,000,000,000,000. Decimal numbers are produced by scaling the range to integers, sampling securely, and dividing back, which keeps the distribution even.

    The entire pipeline runs in your browser. Range settings, results and history never leave your device, and the local history can be cleared at any time. When you request multiple sets, each set is generated independently, so two sets can contain the same value — switch on unique numbers when that matters.

    Examples

    • Roll a die: minimum 1, maximum 6, quantity 1 → a value such as 4.
    • Pick six unique numbers from 1–49: quantity 6, unique on → for example 7, 12, 23, 31, 44, 48. Intended for games, practice and entertainment, not as a lottery operator.
    • Assign numbers to a class: minimum 1, maximum 30, unique on, ascending → 1–30 in a random order.
    • Generate decimals: minimum 0.5, maximum 9.5, decimal mode with 2 places → values such as 3.27, 8.04, 1.93.

    Common Uses

    • Board games, tabletop role-playing and classroom activities that need a quick number.
    • Drawing winners or assigning order for quizzes and giveaways, where local rules may apply.
    • Creating mock data, test inputs, sample identifiers and randomized practice problems.
    • Sampling items or seats without repeats, using the unique-numbers mode.
    • Running quick simulations where a transparent, client-side process matters more than statistical modelling.
    • Learning probability and statistics with reproducible, transparent logic.

    Frequently Asked Questions

    Are the numbers truly random?

    Yes. Each number is produced with the browser Web Crypto API (crypto.getRandomValues), which draws on operating-system entropy. The tool never falls back to non-cryptographic pseudo-random functions, and a rejection-sampling step removes modulo bias so every value in the range has an equal chance.

    Are the minimum and maximum included?

    Yes. The range is inclusive on both ends: with a minimum of 1 and a maximum of 100, both 1 and 100 can be generated.

    Can I generate numbers without repeats?

    Yes. Choose Unique numbers in Advanced Options. If you ask for more unique numbers than the range contains, the tool explains the problem instead of silently repeating values.

    Does the tool send my numbers to a server?

    No. Generation happens entirely in your browser, and the local history is stored only in your browser storage. No generated value, list or setting is transmitted to us.

    Can I generate decimal numbers?

    Yes. Switch the number type to Decimal and choose 1–6 decimal places. Decimals are generated with integer scaling, so the values stay evenly distributed.

    Can I share a configuration with someone?

    Yes. Share settings copies a link that stores your options in the URL fragment, for example #min=1&max=100&count=10. The fragment is never sent to the server and generated results are never included.

    Last updated: