Finance 44 tools → Date 19 tools → Health 27 tools → Everyday 23 tools → Math 19 tools → Construction 16 tools → PDF 23 tools → Education 10 tools → Conversion 7 tools → Text 12 tools → Image 8 tools → About → Contact →

Random Number Generator

Runs entirely in your browser — your numbers are never sent anywhere.

Your random numbers
—

Random numbers in any range

Set a smallest and largest value, say how many numbers you need, and this generator draws them — for raffles, classroom cold-calls, game nights, dice substitutes, password PINs, sampling and breaking ties. Two options cover the common special cases: no duplicates, when every number must be different (a lottery-style draw, where the count is capped at the size of the range), and sort the result, when you want the draw presented in order rather than in the order it fell out.

How the randomness works

Each number = Lo + floor(Random × (Hi − Lo + 1)), with Random uniform in [0, 1)

Your browser provides a pseudorandom source designed so every value in the range is equally likely over many draws — no number is "due" and none is favoured. With duplicates allowed, each draw is independent, which is why the same number can legitimately appear twice in a row; that is what real randomness looks like. In no-duplicates mode the tool shuffles the whole range (a Fisher–Yates shuffle) and deals from the top, the digital equivalent of drawing numbered balls without putting them back. For anything with legal or financial weight — official lotteries, audits, regulated giveaways — use a certified drawing service rather than any web tool, this one included.

Making a fair pick from a list

To choose one option from a list of names, number the entries and set the range to 1–N, or paste the list into the List Randomizer, which shuffles the entries themselves and puts a winner on top. Both tools run entirely on your device, so a draw made here leaves no record anywhere.

Worked example

Drawing 5 numbers between 1 and 100 might give 7, 42, 58, 63, 91 — a different set every roll, with the sum, average and extremes reported alongside.

How to use this calculator

  1. Set the smallest and largest allowed numbers.
  2. Say how many numbers to draw.
  3. Tick “no duplicates” for a lottery-style draw, or “sort” for an ordered result.
  4. Press Calculate for a fresh draw — every press re-rolls.

Why streaks happen

People expect random sequences to look mixed, so runs like 4, 4, 17, 17, 17 feel rigged. They are not: with duplicates allowed and a range of 100, getting at least one repeat in five draws happens about 10% of the time, and apparent patterns are the norm in genuine randomness. Judges of fairness (including lottery auditors) test the statistics of millions of draws, not whether one draw “looks random”.

Frequently asked questions

Is this random enough for a raffle?
For a friendly raffle, classroom draw or game — yes, comfortably. The browser's generator is uniform and unpredictable for everyday purposes. Regulated or high-value draws should use a certified service with an audit trail.
Why did the same number appear twice?
Because with duplicates allowed, every draw is independent — the generator has no memory of the last number. If repeats are a problem for your use, tick “no duplicates”.
How many numbers can I generate?
Up to 1,000 at a time (and in no-duplicates mode, at most the size of your range). The result is shown in full, with sum and average, so big samples are easy to paste into a spreadsheet.
Keep going

Related everyday calculators