Random Number Generator

Pick random numbers fairly. Set a minimum and a maximum, choose how many numbers you need, and decide whether repeats are allowed. The generator uses your browser’s cryptographically secure random source with a method that gives every number in the range an equal chance, so it suits draws, games, sampling and classroom activities.

Tools

Loading tool…

At a glance

Range
Whole numbers from −1,000,000,000 to 1,000,000,000
Quantity
1 to 10,000 per click
Options
No repeats; sort the result
Randomness
crypto.getRandomValues with rejection sampling for equal chances

How it works

  1. Set the range

    Enter the smallest and largest whole numbers allowed.

  2. Choose how many

    Pick from 1 to 10,000 numbers, with or without repeats.

  3. Generate

    Press Generate; a single number is shown large, and lists can be copied.

Which random tool fits?

Pick by what you are choosing.

OptionBest forTrade-off
Random Number Generator (this page)Numbers in a range.Numbers only.
Random PickerChoosing from a list of names or items.Needs a typed list.
UUID GeneratorUnique identifiers.Not human-friendly.
Password GeneratorSecure passwords.Not for draws.
Sort LinesOrdering results after a draw.Does not randomise.

Example: a raffle with 250 tickets

You sold tickets numbered 1 to 250 and need three different winners.

  1. Set the minimum to 1, the maximum to 250 and how many to 3.
  2. Keep No repeats ticked so the same ticket cannot win twice.
  3. Press Generate and announce the three numbers. Press it again only if you agreed in advance to redraw.

When to use Random Number Generator

Use it for classroom questions, office raffles, giveaway winners, quiz games, random sampling of invoices or records for checking, and choosing a random order for presentations.

Secure and fair randomness

Simple random functions can be predictable or slightly uneven. This tool uses the browser’s cryptographic generator and rejects the small number of raw values that would bias the result, so every number in the range is equally likely.

Draws without repeats

Drawing without repeats keeps each result distinct, like taking tickets out of a box. The tool keeps drawing until it has enough different numbers, which is quick unless you ask for nearly every number in a large range.

Keeping draws transparent

For a public draw, agree the range, the number of winners and the rule for redraws before you press Generate, and record the screen if fairness may be questioned.

Using it for sampling

To check a sample of invoices, files or answer sheets, number them, set the range from 1 to the total, choose how many to check and keep No repeats ticked. Sorting the result makes the chosen items easy to find in order.

Why not just think of a number

People are poor at choosing at random: we avoid repeats, favour some digits and steer clear of the ends of a range. A generator removes that bias, which is why it is fairer for draws and selections that others have to trust.

Seeds and repeatability

Each press of Generate gives a fresh, unpredictable result; there is no seed to repeat a draw. If you need to prove a result later, take a screenshot or copy the numbers immediately after drawing.

Picking winners fairly in public

For giveaways, publish the rules before the draw: who is eligible, how entries are numbered and how many winners there will be. Number entries in the order received, draw with No repeats ticked, and share a screenshot of the result. Transparent draws avoid disputes.

Random order for presentations

To decide speaking order fairly, number the participants from 1 upwards, generate that many numbers without repeats, and use the order they appear. Everyone gets an equal chance of going first.

If something looks wrong

It says only so many different numbers exist
With No repeats, you cannot draw more numbers than the range contains. Widen the range or allow repeats.
Numbers repeat
Tick No repeats.
Decimals are needed
The generator makes whole numbers. For decimals, generate larger whole numbers and divide, for example 0 to 1000 then divide by 100.
The list is in a random order
Tick Sort the result to list them in order.

Common questions

Can I use negative numbers?

Yes, the minimum and maximum can be negative.

Can I save the results?

Copy them and paste them into a document or sheet.

Are results stored?

No.

Is every number equally likely?

Yes. The generator discards the few raw values that would make some numbers more likely, so each number in the range has the same chance.

What does No repeats do?

Each number appears at most once, like drawing tickets without putting them back.

Can I use it for official lotteries?

It is fair for informal draws, but official lotteries and legal draws have their own procedures and audit requirements.

Numbers come from your browser’s cryptographic generator; draws are not logged by SortMyFile.