Random number generator

    Fair random numbers, dice rolls and coin flips.

    What do you need?

    Uses your browser's secure random generator (crypto). Nothing is sent or saved.

    About the Random Number Generator tool

    This random number generator picks one or many whole numbers between any two values, with every number equally likely. Turn on "No repeats" for lucky draws, or switch to dice and coin modes; it can make up to 10,000 numbers at once using your browser’s secure random source. Teachers use it to pick roll numbers for a question, and offices for raffles: range 1 to 60 with "No repeats" and count 60 gives a fair order.

    At a glance

    Range
    Any whole numbers; up to 10,000 numbers at a time, with or without repeats
    Source
    crypto.getRandomValues with rejection sampling, so no number is favoured
    Dice
    Up to 10 dice with 4, 6, 8, 10, 12, 20 or 100 sides
    Coins
    Up to 100 coins at once, with heads and tails counted
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to generate random numbers

    1. Choose Numbers, Roll dice or Flip a coin.
    2. Set the minimum, maximum and how many (or the dice and coins).
    3. Press Generate. Press it again for a new result, then copy it.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Random Number Generator: frequently asked questions

    Are the numbers really random?

    Yes, they come from your browser’s cryptographic random generator (crypto.getRandomValues), the same source used for passwords. The tool also avoids the small bias that simple methods introduce, so each number is equally likely.

    How do I pick lottery-style numbers without repeats?

    Tick "No repeats", set the range and the count. For example, range 1 to 49 and count 6 gives six different numbers; choose "Smallest first" to sort them.

    Can I use it for an official prize draw?

    It is fine for classrooms, games and informal draws. For regulated contests, follow the rules of your organisation or local law.

    Is a dice roll here fair?

    Yes. Each face of each die has exactly the same chance, and every roll is independent of the last.