Random Number Generator

Generate up to 500 cryptographically random numbers in a range, with optional deduplication, list or comma-separated output, and one-click copy.

Numbers are generated locally in your browser with the Web Crypto API. Nothing is uploaded and nothing leaves your device.

Format
Generated numbers

How It Works

Set the minimum and maximum, choose how many numbers to generate (up to 500), and pick your output format. Press Generate and the tool draws each number from your browser's cryptographic random number generator — the same engine used to create passwords and encryption keys. Every number lands uniformly inside your range, with no bias from modulo arithmetic.

Where the randomness comes from
The tool calls crypto.getRandomValues() with a 32-bit buffer and uses rejection sampling: if a drawn value falls outside the largest multiple of your range that fits in 32 bits, it is discarded and redrawn. This removes modulo bias, so every integer in your range has exactly the same probability of being picked.
Unique or with repeats
With "Remove duplicates" on, generated numbers are tracked in a set and repeats are redrawn until every result is distinct. This requires your range to be at least as big as the count — if max − min + 1 is smaller than the number you asked for, the tool stops and tells you. With the option off, numbers may repeat, just like drawing balls with replacement.
Negative ranges
The range is simply an integer interval. Set the minimum to a negative value (e.g. -50 to 50) and negatives come out naturally. Only requirement: maximum must be greater than minimum.

Frequently Asked Questions

Is this really 'true random'?

Yes — as close as a browser can get. The tool draws from crypto.getRandomValues(), which uses your operating system's cryptographically secure random number generator (CSPRNG). That is the same primitive used for passwords and encryption keys, so the results are unpredictable and not derived from any guessable seed like Date.now().

What does deduplication do?

With deduplication on, every generated number is unique — the same value never appears twice. That is only possible when the range (max − min + 1) is at least as large as the number of values you request; if it isn't, the tool tells you to reduce the count or widen the range. With deduplication off, values can repeat, like real lottery draws with replacement.

Can I use negative numbers?

Yes. Simply enter a negative minimum, for example from -100 to 100. The tool works with any integer range as long as the maximum is greater than the minimum.

Why is the limit 500 numbers?

500 is a comfortable limit for instant, smooth output and for one-click copying. Generating thousands of unique numbers in a small range would also require many extra random draws. If you need more, run the tool a few times and combine the outputs.

Are the generated numbers sent anywhere?

No. Everything happens in your browser: the random draws come from the local Web Crypto API and the results are only shown on this page. No request is sent to any server, and nothing is stored — close the tab and the numbers are gone.