Skip to content
toolstome

Random number generator

Pick a minimum and maximum and get a random whole number between them, including both ends. Ask for a list of up to 10,000 numbers, choose whether numbers may repeat, and sort the result if you like. The numbers come from your browser’s cryptographic random generator, the same source used to create encryption keys, and every number in the range is exactly as likely as any other. It suits raffles, picking winners, sampling rows, dice rolls and lottery-style draws.

Free · No sign-upProcessed in your browser

Separate with

How to use the Random Number Generator

  1. 1

    Set the range

    Enter the smallest and largest number allowed. Both ends are included.

  2. 2

    Choose how many

    Enter how many numbers you want, from 1 to 10,000.

  3. 3

    Pick the options

    Tick “No repeats” for a draw where each number appears once, and “Sort” to list them in order.

  4. 4

    Generate

    Press Generate. Press it again for a fresh set, then copy the list.

How the numbers are made fair

The generator asks the browser’s crypto.getRandomValues for random 32-bit or 53-bit values. Simply taking the remainder after dividing by the size of the range would make some numbers slightly more likely than others, so values from the uneven tail are thrown away and drawn again. This is called rejection sampling and makes every number equally likely.

For draws without repeats, small ranges are shuffled with a partial Fisher–Yates shuffle; large ranges redraw any number already picked.

  • range size = max − min + 1
  • limit = ⌊2³² ÷ range size⌋ × range size
  • accept x when x < limit; result = min + (x mod range size)

When to use it

  • Pick raffle or giveaway winners from numbered entries.
  • Roll dice or draw lottery-style numbers without repeats.
  • Choose random rows or IDs to sample from a dataset.

Limits

  • Only whole numbers are generated, between about −9 quadrillion and +9 quadrillion.
  • Up to 10,000 numbers per press.
  • For regulated lotteries or gambling, use a certified system; this tool is not audited for that.

Privacy

Numbers are generated in your browser. Nothing is sent to a server or stored.

Frequently asked questions

Are these numbers truly random?

They come from your operating system’s cryptographically secure random generator through the browser. That is unpredictable enough for encryption keys, which is far beyond what a raffle or game needs.

Are the minimum and maximum included?

Yes. A range of 1 to 6 can return 1, 2, 3, 4, 5 or 6, each with the same chance.

How do I get numbers without repeats?

Tick “No repeats”. You cannot ask for more numbers than the range holds; 1 to 49 allows at most 49 unique numbers.

Can I use negative numbers?

Yes. Any whole numbers work, for example −10 to 10.

Is there a bias towards some numbers?

No. Rejection sampling removes the small bias that the common remainder method causes, so every number in the range is equally likely.

Can I copy the results?

Yes. Lists show in a box with a copy button, separated by new lines, commas or spaces.

People also use

Last updated November 22, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More