Skip to content
Language:en

Random number generator

Draw random numbers in any range, with or without repeats, like dice or a lottery.

Presets

Result

—

Runs entirely in your browser. Your files never leave your device.

About this tool

Need a number between 1 and 100, a dice roll, a winner for a giveaway or lottery-style numbers that never repeat? Set the minimum and maximum, choose how many numbers to draw and press generate. Tick “No repeats” to draw distinct numbers, like balls taken out of a drum, and “Sort” to read them in order.

The numbers come from your browser’s cryptographic random generator, with a method that keeps every value exactly as likely as the others, so draws are fair. Presets cover the usual dice, a 1 to 100 pick and heads or tails with 0 and 1. The link keeps your settings, not the numbers drawn.

How it works

  1. Set the minimum and maximum, or tap a preset.
  2. Choose how many numbers to draw.
  3. Tick “No repeats” and “Sort” if needed.
  4. Press Generate, then copy the numbers.

Values come from crypto.getRandomValues. Rejection sampling removes the small bias that a simple modulo would introduce, and draws without repeats use a Fisher–Yates shuffle.

Worked example

Your giveaway post received 250 eligible comments, numbered in order. Set the range from 1 to 250, draw 3 numbers with “No repeats” on, and you get three distinct winners, for example 17, 142 and 208. Take a screenshot of the draw for transparency.

For lottery-style numbers, choose 1 to 49, draw 6 without repeats and tick “Sort”. Every combination is exactly as likely as any other.

Good to know

  • Number the entries before drawing, and announce the method in advance: it makes the draw easy to check.
  • “No repeats” is what you want for winners or teams; leave it off for dice-like rolls where the same value can come twice.
  • To pick from a list of names rather than numbers, the random name picker does it directly.

Frequently asked questions

Are the numbers truly random?
They come from the operating system’s cryptographically secure generator, the same source used for encryption keys. They cannot be predicted from earlier draws.
Can I use it for a giveaway?
Yes. Number your participants, set the range to 1 to their count and draw as many winners as needed with “No repeats”. Share your screen so everyone sees the draw.
How many numbers can I draw at once?
Up to 10,000 per draw. Without repeats, you cannot draw more numbers than the range contains.