Random Number Generator

A random number generator picks numbers with no pattern within a range you choose. This one uses your browser’s cryptographic random source, so results are unpredictable and unbiased.

How to use the Random Number Generator

  1. Enter the minimum and maximum.
  2. Choose how many numbers and whether duplicates are allowed.
  3. Click Generate and copy the result.

How it works

The tool maps secure random values uniformly onto your range (rejection sampling avoids bias). With “no duplicates” on, each value can appear only once, so you cannot request more numbers than the range holds.

Worked example

Minimum 1, maximum 100, count 5, no duplicates: for example 42, 7, 91, 15, 63.

Good to know

Use it for raffles, sampling, games and picking lottery-style numbers.

It is suitable for everyday use, not for regulated gambling.

Nothing is stored or sent anywhere.

Frequently asked questions

It uses crypto.getRandomValues, a cryptographically secure source, which is stronger than Math.random.

Yes, tick No duplicates; the count cannot exceed the number of possible values.

Yes, choose Decimals for values with 2 decimal places.