Random Number Generator

Free random number generator: generate one or more random numbers within any range. Optional unique values. Uses secure crypto RNG.

AI-ready Use this tool with AI

This tool has a free JSON API. Copy a prompt or skill below to use it with ChatGPT, Claude, or any AI agent — no API key needed.

API docs
Click generate.

How random number generator works

This generator produces random numbers using the Web Crypto API (crypto.getRandomValues), which provides cryptographically secure randomness. This is stronger than Math.random and suitable for passwords, tokens, and unbiased selections.

Enter a minimum and maximum value to define the range (inclusive), and choose how many numbers to generate. Enable the unique option to ensure no duplicates in the output. The generator picks numbers uniformly across the entire range.

For unique numbers, the maximum count is limited by the range size (you cannot generate 100 unique numbers from a range of 1 to 50). The generator automatically handles this and produces as many unique values as the range allows.

Frequently asked questions

Is this random number generator truly random?
It uses the Web Crypto API (crypto.getRandomValues), which provides cryptographically secure pseudo-random numbers. This is suitable for passwords, tokens, and unbiased selections. It is not suitable for cryptographic key generation requiring hardware entropy.
Can I generate unique (non-repeating) numbers?
Yes. Enable the unique option and the generator ensures no number appears twice. The maximum count of unique numbers is limited by the range size.
How do I pick a random number between 1 and 100?
Set the minimum to 1, the maximum to 100, and the count to 1. Click Generate to get a single random number in that range, inclusive of both endpoints.
Can I generate multiple random numbers at once?
Yes. Set the count to any number up to 10000 (or the range size for unique numbers). The generator returns all results at once.