Free Financial Calculator Online

Random Number Generator

Free random number generator. Pick one or many random whole numbers in any range, with or without repeats, using a cryptographically secure source.

1 to 10,000

Set a range and press Generate.

Picking from a list of names or emails instead of numbers? Use the contest winner picker, or the giveaway picker for social media giveaways with bonus entries.

How the random numbers are drawn

Each number comes from your browser’s secure random number generator, crypto.getRandomValues, which is built for security work like creating encryption keys. For a range from min to max, a draw returns min + ⌊u × (max − min + 1)⌋, where u is a uniform random value between 0 and 1. Every whole number in the range has the same probability, 1 / (max − min + 1).

With repeats off, the tool shuffles the whole range with a Fisher-Yates shuffle and takes the first knumbers, just like drawing tickets from a hat, so no number can come up twice.

The rolling numbers you see before the result are only for show: the result is fixed the moment you press Generate. If your device is set to reduce motion, the result appears immediately.

Use our FREE random number generator! Set the smallest and largest number you want, choose how many numbers you need, and press Generate. It works for raffles, prize drawings, picking a random line from a spreadsheet, choosing who goes first, or anything else that needs a fair, unpredictable number.

How random is it?

Computers are built to be predictable, so producing a truly unpredictable number takes some care. Many online generators use a pseudo-random function like JavaScript’s Math.random(), which produces a sequence that looks random but is generated from a starting value, or seed. That’s fine for a game, but it isn’t designed to be unpredictable.

This generator uses your browser’s cryptographically secure random number generator instead. It is the same source browsers use to create encryption keys, seeded by the operating system from hard-to-predict hardware and system events. Nobody, including us, can predict or influence the numbers it gives you, and every whole number in your range has exactly the same chance of coming up.

How to use the random number generator

Set the range

Enter the minimum and maximum. Both are included, so a range of 1 to 100 can return 1, 100, or anything in between. Negative numbers work too.

Choose how many numbers

Generate a single number or up to 10,000 at once. Leave Allow repeats off to get unique numbers, like drawing tickets from a hat, or turn it on if the same number can come up more than once, like rolling a die several times. Tick Sort results to list them from smallest to largest.

Generate and save the result

Press Generate. The result shows the date and time of the draw, and you can copy the numbers or download them as a CSV to keep a record.

Using it for a raffle

  1. Number your tickets, starting at 1.
  2. Set the minimum to 1 and the maximum to your last ticket number, with repeats off.
  3. Set “How many numbers” to the number of prizes, plus a few extra in case a winner can’t be reached.
  4. Generate once and keep the CSV as a record of the draw.

Running a giveaway from a list of entries rather than numbered tickets? Use our other free tool to randomly select a winner from a list of emails, or the giveaway picker if your social media giveaway has bonus entries.

Frequently Asked Questions

›Are the numbers truly random?

They come from your browser’s cryptographically secure generator (crypto.getRandomValues), the same source used for encryption keys, not Math.random. Nobody, including us, can predict or influence the result, so it is suitable for raffles, drawings, games, and sampling.

›Are the minimum and maximum included?

Yes. A range of 1 to 10 can return 1, 10, or any whole number in between, each with equal probability.

›How do I generate numbers without repeats?

Leave “Allow repeats” unchecked. Each number in the range can then appear at most once, like drawing numbered tickets from a hat. You cannot ask for more unique numbers than the range contains.

›Can I run it again?

Yes. Every press of Generate again is a new, independent draw. If you are drawing raffle tickets, decide beforehand that the first draw counts, and generate a few extra numbers as backups instead of redrawing.

›Is anything stored or sent to a server?

No. The numbers are generated on your own device, and the copy and CSV download happen there too. Nothing is sent to us or saved.

›Can I use it for a raffle?

Yes. Number your tickets, set the range to the first and last ticket numbers, turn repeats off, and generate as many numbers as you have prizes. Download the CSV to keep a record with the draw date and time.

›Can I use negative numbers?

Yes. Any whole-number range works, for example −50 to 50.

Browse all statistics calculators