Random Number Generator Calculator

Generate random integers in any range, with or without duplicates.

This random number generator picks integers between a minimum and a maximum value that you choose, and gives you as many as you need, from one up to 100 at a time. It is handy for raffles and giveaways, picking a winner, choosing a random sample, rolling a virtual die, or shuffling who goes first in a game. Turn on the no-duplicates option and every number in the list will be different. Everything runs in your browser, so the numbers are generated on your own device and nothing is sent anywhere.

This is an estimate for information only, not financial or medical advice.

How it works

Random numbers here are drawn with the browser's cryptographic random source, crypto.getRandomValues, when it is available, with the standard Math.random as a fallback on older browsers. Each draw picks uniformly from the whole range, so every number between the minimum and maximum has the same chance of appearing. With no duplicates turned on, the generator draws from the remaining unused numbers, so it stops once every number in the range has been used.

Each result is a whole number n with minimum <= n <= maximum, chosen at random. With no duplicates on, the count must be no larger than (maximum - minimum + 1).

Worked examples

SettingsCheckExpected
Min 1, max 100, count 10Every number is between 1 and 10010 numbers, all in range
Min 1, max 6, count 6, no duplicatesAll 6 numbers different1, 2, 3, 4, 5, 6 in random order
Min 50, max 60, count 5Every number is between 50 and 605 numbers, all in range

Because the results are random, the exact numbers change on every click. The checks in the table are what the generator must satisfy, not fixed values.

Frequently asked questions

How does a random number generator work?

It takes a random value from the browser's built-in random source and maps it onto your chosen range, so each whole number in the range has an equal chance. This page uses crypto.getRandomValues when available, which is the browser's cryptographic source, and falls back to Math.random otherwise.

What is the most random number between 1 and 1000?

There is no single most random number: in a fair draw every number from 1 to 1000 has exactly the same chance. If you need one, set the minimum to 1, the maximum to 1000, and generate a single number.

How do I generate random numbers with no duplicates?

Tick the no duplicates box before generating. The generator then draws each number only once, so the list never repeats a value. The count you ask for cannot be larger than the size of the range.

Are these numbers safe to use for passwords or security?

No. This generator is for everyday uses such as raffles, games, and samples. For passwords or anything security related, use the password generator on this site, which draws from a much larger set of characters.

Related calculators