Random number generator with min, max and no repeats

Need a number between 1 and 10, a raffle draw or a set of lottery-style picks? This random number generator returns up to 10,000 numbers at once, with your own range, optional decimals and an option to block repeats.

  • Free
  • No sign-up
  • Runs in your browser
—

Runs in your browser — nothing you enter is sent to our servers.

How to use Random Number Generator

  1. Enter the Minimum and Maximum. Both ends are included, so 1 to 6 can return 1 or 6.
  2. Set "How many" numbers you want, from 1 to 10,000.
  3. Type the number of Decimals: 0 for whole numbers, or up to 6 for decimal values.
  4. Tick "Allow repeated numbers" if the same value may appear more than once. Uncheck it for a draw without repeats.
  5. Press Generate and copy the list of results with the copy button.

Features

  • Any range you like, with minimum and maximum both included
  • 1 to 10,000 numbers per click
  • Whole numbers or up to 6 decimal places
  • Repeats allowed or blocked, for draws where each number can win only once
  • Every value in the range is equally likely, with no modulo bias
  • Randomness from the Web Crypto API of your browser

Examples

InputResult
Min 1, max 6, 1 number, 0 decimalsA single whole number from 1 to 6, for instance 4 — A digital die roll.
Min 1, max 49, 6 numbers, repeats offSix different numbers between 1 and 49 — A lottery-style draw. Each press gives a different set.
Min 1, max 500, 1 numberOne ticket number between 1 and 500 — Handy for picking a raffle winner.
Min 0, max 1, 3 numbers, 2 decimalsThree values such as 0.37, 0.92, 0.05 — Values are multiples of 0.01, from 0.00 to 1.00.

Limitations

  • With repeats off, the range must hold at least as many values as you ask for. You cannot draw 10 different whole numbers from 1 to 5.
  • The range can contain at most about 4.29 billion distinct values (2^32) at the chosen decimal precision.
  • It is fine for games, sampling and test data. Do not rely on it for regulated gambling draws.

Learn more

A random number generator picks values so that none can be predicted from the others. Computers usually do this in one of two ways. A pseudo-random generator, such as the classic Math.random function, follows a formula that looks random but can be reproduced from its starting value. A cryptographically secure generator draws on unpredictable system sources and is built to resist guessing.

This tool uses the second kind through crypto.getRandomValues. It also avoids a subtle flaw called modulo bias. If you simply take a random 32-bit number and keep the remainder after dividing by the range size, some results become slightly more likely. The generator instead discards values that would cause that skew, so each number in your range has exactly the same chance.

Choosing repeats or not changes the maths. With repeats allowed, every draw is independent, like rolling a die many times. With repeats off, each value can appear once, like drawing balls from a drum, so you need at least as many possible values as numbers requested.

Frequently asked questions

How do I generate a random number between 1 and 10?

Enter 1 as Minimum and 10 as Maximum, leave the count at 1 and press Generate. Both 1 and 10 can be returned.

How do I get random numbers without repeats?

Uncheck "Allow repeated numbers". The tool then never returns the same value twice in one batch, as long as the range is large enough.

Can it generate random decimals?

Yes. Set Decimals to a value from 1 to 6. With 2 decimals, for example, results are multiples of 0.01.

Is the generator truly random?

It uses the cryptographically secure source built into your browser, not a simple pseudo-random function. Each value in the range has the same chance of appearing.

Can I use it to pick a raffle winner?

Yes. Number your tickets, set the range to match and generate one number. For several prizes, ask for more numbers with repeats off.

Sources

Last reviewed: September 29, 2026