Skip to content

Random Number Generator

In-browser only Crypto-grade entropy Custom range
G GenerateC Copy
Result
Your random number appears here
Generated in your browser using crypto.getRandomValues().
Random Number Generator

Result

G generate · C copy · Esc exit

Overview

Random numbers, drawn in your browser

Pick one random number for a quick decision, or a whole list for raffles, classrooms, and sampling. Everything runs in your browser using cryptographic randomness.

Guide

How to Use

  1. 1
    Choose a mode

    Use the Single number tab for one result, or the List of numbers tab to draw several at once.

  2. 2
    Set the range

    Type a minimum and maximum, or tap a preset like d6 or 1–100 to fill the bounds instantly.

  3. 3
    Adjust list options

    In list mode, set how many numbers you need, toggle unique-only to avoid repeats, and pick a sort order.

  4. 4
    Generate and copy

    Press Generate (or the G key). Copy a single result, copy the whole list, or click or tap any number in the grid to copy it on its own.

Examples

Example results

A few common setups and the kind of output they produce.

Random number, 1 to 10
7
Roll a d20
14
5 unique numbers, 1 to 50
3, 11, 24, 37, 49
Coin flip (0 or 1)
1

Pitfalls

Common mistakes

  • Treating it as a certified lottery RNG

    This generator suits raffles, classrooms, and casual use. It is not a substitute for a regulated, independently audited drawing system.

  • Leaving unique-only off for draws

    With unique-only off a number can repeat. Turn it on whenever every result must be distinct — for example when picking separate winners.

  • Asking for more unique numbers than the range holds

    Unique mode needs a count no larger than maximum minus minimum plus one. Widen the range or lower the count if you hit the limit.

  • Confusing the sort order with the draw order

    Sorting reorders the displayed list but does not change which numbers were drawn. Use "As drawn" to see the original sequence.

Frequently asked questions

How does this random number generator work?
It uses your browser's built-in Web Crypto API (crypto.getRandomValues) with rejection sampling, so every number in your range is equally likely. No server is contacted during generation.
Is the output truly random?
It uses a cryptographically secure pseudo-random number generator (CSPRNG) provided by your browser. The output is unpredictable and well-suited to raffles, games, and sampling, though it is not certified for regulated lotteries.
Are my inputs or results sent anywhere?
No. Generation happens entirely in your browser. Your range, options, and results are never transmitted, stored, or logged.
How do I generate several unique numbers?
Switch to the List of numbers tab, set the range and the count you need, and turn on unique-only. Each number in the result will then be different.
What is the maximum count I can generate?
You can generate up to 1,000 numbers in one run. In unique-only mode the count cannot exceed the size of the range (maximum minus minimum plus one).
Can I use negative numbers?
Yes. Both the minimum and maximum accept negative whole numbers, so you can draw from ranges like -50 to 50.
Can I use this for a raffle or giveaway?
Yes. Turn on unique-only, set the range to match your participant numbers, choose a count, and generate. Each drawn number maps to one participant.
Does the sort option change which numbers are drawn?
No. Sorting only reorders how the list is shown. Choose "As drawn" to keep the numbers in the exact order they were generated.
Where can I see my recent draws, and how does Copy all format the numbers?
Open full screen to see a Recent strip of your last few single-number draws. Copy all places the numbers as a newline-separated list (one number per line), ready to paste into a spreadsheet column.