Skip to content
everylittletool

Random Number Generator

Pick random whole numbers between any minimum and maximum, with or without repeats.

Runs in your browser — nothing is uploaded

Sort

How to use Random Number Generator

  1. 1

    Enter the Minimum and Maximum (both are included in the range).

  2. 2

    Enter How many numbers you want.

  3. 3

    Tick No repeats if each number may appear only once, and choose a Sort order.

  4. 4

    Click Generate, then Copy to take the results.

About this tool

Numbers are drawn with your browser's cryptographic random number generator, crypto.getRandomValues, rather than Math.random. Raw random bits are turned into a range with rejection sampling: values that would make some numbers slightly more likely than others are thrown away and redrawn. The result is that every number from the minimum to the maximum has exactly the same chance.

With No repeats ticked, the tool shuffles the range (a partial Fisher–Yates shuffle) for small ranges, or draws and skips duplicates for very large ones. Either way every set of distinct numbers is equally likely, which is what you want for raffles, picking winners, or choosing a random sample.

You can use any whole numbers, including negatives, up to about nine quadrillion in size, and generate up to 10,000 results at a time. Nothing is logged, so the draw cannot be replayed or seen by anyone else; if you need proof of fairness for a public draw, record your screen while you click Generate.

Questions people ask

Is this random number generator truly random?

It uses the same cryptographic generator browsers use for encryption keys, seeded from your operating system's entropy. It is unpredictable and unbiased for any practical purpose.

Are the minimum and maximum included?

Yes. A range of 1 to 10 can return 1, 10 or anything in between.

How do I pick lottery numbers?

Set the range your lottery uses, for example 1 to 49, set How many to 6, tick No repeats and sort low to high.

Why can't I get more unique numbers than the range?

Between 1 and 10 there are only ten different numbers, so you cannot draw eleven without repeating one. Widen the range or allow repeats.