Random Number Generator

Generate random numbers in any range, one or many at a time, with optional unique-only results.

Set a range, press generate. Numbers come from your browser’s cryptographic random source, not a predictable formula.

Result

How Does It Work?

  1. Set the rangeAny two whole numbers, negatives included. If you get them the wrong way round the calculator swaps them for you.
  2. Choose how manyOne number for a quick pick, or a batch for a draw. Turn on "No repeats" when every number must be different.
  3. GeneratePress the button as many times as you like — each press is an independent draw.

What Is It Used For?

Where it is available, this tool uses the browser’s cryptographic random number generator rather than the ordinary pseudo-random function, and it discards values that would bias the result when the range does not divide evenly. That makes the draw fair in a way that a quick modulo of Math.random is not.

  • Picking a winner from a numbered list of entrants.
  • Drawing lottery-style numbers with no repeats.
  • Choosing a random order for presentations or interviews.
  • Rolling dice or generating a random score in a game.
  • Sampling rows from a dataset by row number.

Examples

RangeCountOptionsExample result
1 – 100173
1 – 496No repeats, sorted4, 11, 23, 28, 40, 45
1 – 623, 6
−10 – 105−7, 2, 2, 9, −1

Frequently Asked Questions

Are the numbers really random?

They come from the browser’s crypto.getRandomValues, which is a cryptographically secure source seeded by the operating system. The tool also rejects values that would skew the distribution, so every number in the range is equally likely.

Can I get the same number twice?

Yes, unless you turn on "No repeats". Repeats in a random draw are normal and expected — in a range of 100, drawing 10 numbers gives roughly a 37% chance of at least one repeat.

Are negative numbers supported?

Yes. Enter any whole numbers, including negatives, in either order.

Is this suitable for a prize draw?

It is fair for informal draws. Regulated lotteries and competitions usually require a certified, auditable process, so check the rules that apply to you.

Can I generate decimals?

Not currently — the tool returns whole numbers. For a decimal, generate a large integer and divide it yourself, for example 0–10,000 divided by 100.

How do I pick a random item from a list?

Number the items from one upwards, generate a single number in that range and take the matching entry. For several winners without repeats, set the count and switch on "No repeats". To shuffle an entire list instead, the Sort Lines tool has a shuffle mode.

Free. No registration. This tool runs entirely in your browser, so the data you enter stays on your device.