Random Number Generator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free random number generator. Pick one or many whole numbers in any range, with no repeats if you like, using your browser's secure randomness.

Numbers

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the random number generator

Enter the lowest and highest numbers (both included), how many numbers you want, and click Generate:

  • No repeats (on by default) makes every number different, like drawing numbered balls from a bag without putting them back.
  • Sort from low to high lists the results in order, which is handy for lottery-style picks.

A single number appears in large type for everyone to see; longer lists appear below, one per line, ready to copy. Click Generate again for a fresh draw. You can generate up to 10,000 numbers at a time, and negative numbers work too.

The numbers come from your browser's cryptographically secure random number generator, and nothing is sent anywhere.

How the numbers are generated

The random number generator uses crypto.getRandomValues, the browser's secure source of randomness, which is designed to be unpredictable enough for encryption keys. Two details make the results fair:

  • No modulo bias. A common shortcut, taking a large random number and using the remainder after dividing by the size of the range, makes some numbers slightly more likely than others. This tool discards the few values that would cause that bias, so every number in the range has exactly the same chance.
  • True "without replacement" draws. With No repeats on, each number can only appear once, and every possible set of results is equally likely.

Why not Math.random?

JavaScript's Math.random() is fine for games and animations, but its output isn't designed to be unpredictable; in principle, someone could work out future values from past ones. For anything where fairness matters, a cryptographically secure generator is the right choice.

Repeats or no repeats?

  • With repeats (No repeats off): each number is drawn independently, like rolling a die several times. The same number can come up twice. Use this for simulations, dice rolls and random samples with replacement.
  • Without repeats (No repeats on): each number appears at most once, like drawing raffle tickets. Use this for picking winners, assigning unique numbers or choosing a random order.

If you ask for more unique numbers than the range contains, for example 10 different numbers between 1 and 5, the tool tells you it isn't possible.

Common uses

  • Raffles and prize draws: number the tickets, then draw winning numbers. For draws from a list of names or usernames, the giveaway picker is easier and records the time of the draw.
  • Choosing a random winner from comments: number the comments in order, then draw.
  • Random samples: pick which customers to survey, which orders to check or which invoices to audit. The sample size calculator tells you how many you need.
  • Games and classrooms: dice rolls, bingo calls, picking a student.
  • Decisions: "pick a number from 1 to 3" when you can't choose.
  • Testing: random IDs or values for test data.
  • Order and teams: to put a list of names in random order or split it into teams, the list randomizer does it directly.

Making a draw look fair

When a random draw matters to other people, how you run it matters as much as the randomness:

  • Agree the range and rules first, including how many winners and whether repeats are allowed.
  • Number entries in a fixed order (for example, by time of entry) before drawing.
  • Draw in front of people, on a shared screen or a live stream, if you can.
  • Take a screenshot of the result.
  • Draw once. Don't redraw because you don't like the result.

Can random numbers predict the lottery?

No. Lottery draws are random, so every combination is as likely as any other, and past results don't affect future ones. A random number generator can pick numbers for you, but it can't improve your chances. One small, honest tip: because many people choose birthdays, combinations with numbers above 31 are shared with fewer people if they do win.

Understanding randomness

Random results often don't look random:

  • Streaks happen. Drawing the same number twice in a row (with repeats on) is perfectly normal.
  • Clusters happen. Five numbers between 1 and 100 can easily include 41, 43 and 47.
  • Even spread takes many draws. Only over many results do counts even out.

A fair generator produces these patterns naturally. A "random" list that looks too evenly spread is usually a sign that a person chose it.

Probability basics

  • The chance of a specific number in one draw from a range of N numbers is 1 in N.
  • The chance of drawing the same number twice in a row, with repeats, is 1 in N × N.
  • With 10 draws from 1 to 100, with repeats, the chance of at least one repeat is about 37%, higher than most people expect. This is the "birthday problem" in action.

Quick settings for common tasks

Task Lowest Highest How many No repeats
Roll a die 1 6 1 off
Roll two dice 1 6 2 off
Flip a coin (1 = heads, 2 = tails) 1 2 1 off
Pick 3 raffle winners from 500 tickets 1 500 3 on
Pick a random month 1 12 1 off
Shuffle the order of 20 people 1 20 20 on
A random 4-digit PIN-style number 1000 9999 1 off

For an actual PIN or password, use the password generator, which is designed for security.

Random samples for business

A random sample lets you check a small part of something big, and draw fair conclusions about the whole:

  • Quality checks: pick 20 random orders from the week's 600 to check packing and accuracy.
  • Customer feedback: survey a random selection of customers rather than only the ones who reply to everything.
  • Audits: choose random invoices or expense claims to review.
  • Testing: pick random products or pages to test after a change.

Number the items (for example, by order number or by row in a spreadsheet), then use the random number generator with No repeats on to pick which ones to check. Write down the numbers drawn, so the sample can be checked later.

Random numbers in spreadsheets

Excel and Google Sheets have RAND() and RANDBETWEEN(low, high), but they recalculate every time the sheet changes, so the numbers keep changing, and RANDBETWEEN can repeat. For a draw you need to record, generate the numbers here, copy the list and paste it into your sheet as values. The results then stay fixed, and with No repeats on, every number is unique.

To pick a random row from a spreadsheet, number the rows from 1, enter the first and last row numbers here, and generate one number. For several rows without duplicates, keep No repeats on. Then sort the drawn numbers so the rows are easy to find.

Pseudo-random and truly random

Computers generate random numbers with algorithms, so strictly speaking the results are "pseudo-random". A cryptographically secure generator, like the one this random number generator uses, is seeded from unpredictable sources in your device and is designed so that its output can't be predicted or told apart from true randomness in practice. For raffles, games, samples and draws, it's as good as random.

A worked example

A bakery runs an in-store raffle: 240 tickets numbered 1 to 240, and 3 prizes. At closing time on Saturday, the owner opens the random number generator on the shop's tablet, sets 1 to 240, 3 numbers, No repeats and Sort on, and draws in front of the customers who stayed. The results are 17, 132 and 209. The owner takes a screenshot, announces the winning numbers on Instagram that evening, and the winners collect their prizes on Monday.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Frequently asked questions

Is this random number generator truly random?

It uses your browser's cryptographically secure random number generator and avoids modulo bias, so every number in the range has the same chance.

How do I generate numbers without repeats?

Keep "No repeats" ticked. Each number then appears at most once in the results.

Can I include negative numbers?

Yes. Enter any whole numbers as the lowest and highest, such as -10 to 10.

How many numbers can I generate at once?

Up to 10,000. With No repeats on, you can't ask for more numbers than the range contains.

Can it pick lottery numbers?

It can pick random numbers for you, but no generator can improve your chances of winning.

Is the random number generator free?

Yes. It's free with no sign-up, and it runs entirely in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep