Whirlo

Random Number Generator

Set the range, choose how many numbers you want, and generate. Both ends of the range can come up: 1 to 10 includes 1 and 10.

History

    Common ranges

    "No repeats" explained

    With No repeats ticked, each number can only appear once in a batch, like drawing numbered balls out of a bag without putting them back. Untick it for independent draws, like rolling a die several times, where the same number can come up again. With repeats off, you can't ask for more numbers than the range holds (10 numbers from 1–5 is impossible), and the tool tells you if you try.

    How random is it?

    Numbers come from crypto.getRandomValues, your browser's cryptographically secure generator, using rejection sampling, so every number in the range is exactly equally likely. Many simple generators use Math.random() with rounding, which can make the end numbers slightly less likely. This one doesn't. Negative numbers work too.

    Questions people ask

    Does the range include the minimum and maximum?

    Yes. 1 to 10 can give any of 1, 2, … 10.

    Can I generate negative numbers?

    Yes, for example −50 to 50.

    What is the biggest range?

    Up to about 4.29 billion numbers between the minimum and maximum, with up to 1,000 results at a time.

    Can I use it for a prize draw?

    Yes. Number the entries, set the range to match, tick "No repeats", and generate one number per prize.

    More random tools