Random Number Generator

Pick a range. Get your numbers — no repeats if you want them.

Previous draws

    Nothing yet. Your draws will show up here.

    Set a range, press GENERATE, and get numbers nobody can predict, including you. This random number generator draws in your own browser, keeps your draws where you can see them, and starts with the setting this guide comes back to most: no repeats, already on. Everything below is about getting the most out of the random number generator: the ranges, the two switches, the record it keeps, and the questions everybody asks it.

    What is a random number generator?

    A random number generator is a tool that picks numbers you cannot predict in advance. This one uses the cryptographic randomness built into your browser (the Web Crypto function crypto.getRandomValues) and a method called rejection sampling, so every number in your range has the same chance of being drawn. It draws up to 20 numbers at once, No repeats is on by default, and each draw is kept in a list in your own browser (the list holds your last 40 draws). The random number generator sends nothing to a server.

    How to use this random number generator

    The random number generator opens ready to draw one number between 1 and 100. Three fields and two switches control everything:

    • Minimum and Maximum set the range. Both ends count: a 1 to 100 draw can land on 1 or on 100.
    • How many sets how many numbers the random number generator draws in one go, from 1 to 20.
    • No repeats is on before you touch anything. With it on, a number can appear only once in a draw.
    • Sort results is off by default. Turn it on and the random number generator hands the draw back in rising order.

    Press GENERATE and the numbers land with a small burst of confetti. Ask for too many numbers and the random number generator tells you plainly: "Choose between 1 and 20 numbers." Set the maximum below the minimum and it answers: "Maximum must be bigger than minimum." There is nothing to install and no account to make. The random number generator draws whole numbers only, which is what the ranges below are built on. The generators cover more than numbers — you can also draw a random date between any two days.

    Random number generator 1-100

    The 1 to 100 range is the range this random number generator opens on. A single draw on the standard settings gave 66. Nothing about that number is special: on the next press it has exactly the same 1 in 100 chance as every other number in the range, and so does every number you did not get.

    Five numbers at once from the random number generator 1 to 100, with No repeats on and Sort results on, came back as 24, 81, 82, 85, 100. That one draw shows three things the random number generator 1-100 does in a single press: it draws a set instead of a single number, it keeps the set free of duplicates, and it can hand the set back in order when you ask it to.

    Use the full range when the job is the full range: a number for a raffle ticket holder, a page to read, a seat, a day of the month squared away. When the job is smaller, shrink the range instead of drawing on the random number generator 1 to 100 and ignoring most of it. The smaller ranges have their own section next, because small ranges are where everyday draws live.

    Small ranges: 1 to 10, 1 to 3, 1 to 4 and the rest

    Real draws are usually small. One number from a short list, one option out of a handful, one turn order. The random number generator handles the small ranges the same way it handles 1 to 100, and each of the draws below was made on the standard settings of the random number generator:

    • The random number generator 1 to 10 gave 5. A separate five-number draw on this range, No repeats on, gave 4, 10, 7, 8, 2.
    • The random number generator 1 to 3 gave 1. Three options is the classic standoff: which of three routes, which of three finalists, which of three chores goes first.
    • The random number generator 1 to 4 gave 2.
    • The random number generator 1 to 6 gave 1. A 1 to 6 draw is a dice roll without the dice, and it behaves like one: every face has the same 1 in 6 chance, and a run of low numbers proves nothing about the next draw.
    • The random number generator 1 to 20 gave 2.
    • 1 to 2 gave 1. Pick a number between 1 and 2 and you have a coin flip with the coin taken away: two options, even odds, no argument about how the coin landed.

    The pattern to notice is that the range does the work. Set the maximum to the number of options you actually have, and the draw is the decision. Set it wider than your options and you will spend your time throwing away numbers that map to nothing.

    No repeats: the setting that is on before you touch anything

    On most tools that call themselves a random number generator, repeats are your problem. People go to forums angry about it: the same number twice in a row, a draw that hands back a number already picked, a tool with no way to stop it happening. This random number generator starts from the other end. No repeats is on by default, and it stays on until you turn it off.

    Here is what the setting does. A draw with No repeats works like numbered balls taken out of a drum: once a number is drawn, it is out, and the next number comes from what is left. Draw 6 numbers from 1 to 49 and you get 6 different numbers, every time, by construction rather than by luck. Draw with the setting off and the ball goes back in after each pick, so any number can come up again, including the one you just got.

    One thing is worth saying plainly, because it confuses people every day: with repeats allowed, repeats are what honest randomness looks like. A generator that never repeated a number on its own would not be more random; it would be less. In a 1 to 10 draw, the chance that the next number matches the one before it is 1 in 10, and over a long session that will happen several times. It feels like a fault. It is arithmetic. If your job cannot use a repeat, a raffle, a draw order, a set of winning numbers, leave No repeats on and the question never comes up. If your job is a fair sample, turn it off and let the numbers fall where they fall. Either way, the choice sits on the random number generator in front of you, not buried in a settings page. The next sections use both settings, on purpose.

    Drawing a set: up to 20 numbers at once, sorted if you want them

    A single draw on this random number generator can hold up to 20 numbers. That covers the jobs people actually bring to a generator: a set of winning numbers, a run of ticket numbers, a sample for a class exercise, the order of the first twenty names on a list once each name has a number.

    Two switches shape the set. No repeats decides whether the 20 numbers the random number generator draws are all different. Sort results decides whether they come back in rising order or in the order they were drawn. Sorted is easier to read and easier to check against a ticket or a list. Unsorted keeps the draw order, which is the order that matters when the set is a sequence: first drawn, first place.

    Ask the random number generator for 21 and it refuses with its message, "Choose between 1 and 20 numbers," rather than quietly giving you fewer than you asked for. If you need more than 20, draw again: with No repeats off, a second draw continues the run; with it on, each draw is a fresh set from the full range, so a number from the first set can appear in the second. For a single clean set bigger than 20, the honest route is two draws written down in order, or the wheel pages on this site, which hold longer lists.

    Is this random number generator really random?

    It is the right question, and it deserves a straight answer instead of a badge that says "fair".

    This random number generator is a pseudorandom generator, and a strong one. Every generator that runs in software is pseudorandom in the strict sense: an algorithm produces the numbers. What separates a good one from a bad one is where the randomness comes from and whether anyone can predict what comes next. This random number generator draws on crypto.getRandomValues, the cryptographic source your browser already uses for secure work. There is no seed for you to set, none is shown, and no sequence can be replayed: press GENERATE twice on the same settings and the two draws have nothing to do with each other.

    The method matters as much as the source. A lazy way to fit random values into a range is to divide and take the remainder, and that shortcut quietly favors some numbers over others; statisticians call the flaw modulo bias. This random number generator uses rejection sampling instead: a value that falls outside the fair part of the range is thrown away and drawn again, never squeezed in. Nothing in the draw is adjusted, weighted or rounded toward any number.

    The other half of trust is who could interfere. Lottery history has real fraud in it, and the big cases were insider jobs: someone with access to the machine or the code changed what came out. A draw on this random number generator has no insider. It runs in your browser, on your device, and nothing about it travels to a server to be stored, sold or adjusted. The full record of what it drew sits in the Previous draws list on your own screen, which is the subject of the next section.

    What this tool is not: it is not a hardware generator of the kind that reads atmospheric noise or radioactive decay, and it does not claim to be. For picking winners, settling decisions, classroom draws and the hundred other everyday jobs in this article, a cryptographic draw you can watch and keep is the right tool. For generating encryption keys, use your operating system's own key tools, not a web page, including this one.

    Previous draws: the random number generator record that stays

    Every draw you make on this random number generator goes into the Previous draws list, newest first, with the time of day beside it. Leave the page, come back later, and the list is still there. Your last draw is restored as well, marked as your last draw, so a raffle interrupted by a closed tab is not a raffle lost.

    Three buttons work on the record. Copy numbers copies the current draw. Copy all draws copies the whole list, which is the version you paste into a group chat or a results post when people ask how the winners were picked. Share result copies the draw together with a link to this page, and the button confirms it with the words "Link copied." Clear empties the list when you want a clean start.

    This record is the practical answer to the question Quora users ask and nobody answers there: which online generator can you rely on? Rely on one whose work you can check. A screenshot of a single number proves little. A full list of draws from a random number generator, in order, with times, kept on the device where the draw happened, is a record a skeptic can read. And because the list lives only in your browser, the privacy side takes one line: your draws are kept only on this device, and nothing about them is sent anywhere.

    4-digit and 6-digit numbers

    Set the range to the digits you need and the random number generator draws the number whole. A 4-digit draw on this random number generator, minimum 1000 and maximum 9999, gave 7496. A 6-digit draw, minimum 100000 and maximum 999999, gave 745882. These are the draws people use for a fresh lock code, a padlock combination, a verification-style number for a game or a classroom exercise, or a fair way to hand out numbered tickets in a range nobody can guess at.

    One honest limit, stated before you rely on it: a 4-digit draw from 1000 to 9999 never starts with a zero, because no number in that range does. If the code you are replacing begins with a zero, this is the wrong range for it, and no setting on this page pads a shorter number with a leading zero. For everything that does not start with zero, the draw is one press of the random number generator: set the two ends of the range, leave How many at 1, and take the number that lands.

    Lottery-style draws from the random number generator

    A lottery set is a small set of different numbers from a fixed range, which is exactly the shape this random number generator draws best. Six numbers from 1 to 49, No repeats on and Sort results on, came back as 4, 22, 33, 34, 42, 46. That is a complete quick-pick style line, drawn in one press of the random number generator, and the same settings draw a Pick 3 or Pick 4 line if you set How many to 3 or 4 and the maximum to your game's range.

    Now the part that has to be said straight, because the forums are full of the opposite hope: no random number generator can predict a lottery draw, and this one does not try. There are 13,983,816 ways to choose 6 numbers from 49, and every one of them, including the line above and the line 1, 2, 3, 4, 5, 6, has exactly the same chance of winning. A drawn set is a fair way to pick your numbers, nothing more. It is not a worse way than choosing birthdays, and it has one real advantage over birthdays: birthdays cluster between 1 and 31, so birthday lines are shared with thousands of other players, and a shared jackpot is a smaller jackpot. A line drawn from the full 1 to 49 spreads over numbers most players never touch.

    Repeats across draws are also normal, and they worry people more than they should. If last week's winning number appears in this week's draw, that is not a sign of anything: each draw starts fresh, the balls have no memory, and neither does this random number generator. With No repeats on, the promise is inside one draw only. The next draw is a new drum.

    Raffles, giveaways and classroom picks

    A raffle is a trust exercise before it is a number exercise. The people who entered cannot see inside the draw, so the draw has to happen where they can watch it and leave a record they can read afterwards. Run this random number generator on the screen everyone can see, set the range to the ticket numbers, and press GENERATE: the confetti marks the moment, the winning number is on screen, and the draw joins the Previous draws list with its time beside it. Afterwards, Copy all draws gives you the record to post with the result. A bingo night runs on the same trust: the free bingo caller draws each ball in front of the room and keeps every call on the board.

    For a giveaway with numbered entries, the same shape works at any size up to the range you set. Use the random number generator to draw once for one winner. For three winners, draw three numbers with No repeats on, and the same entry cannot win twice. If a winning number turns out to belong to nobody, an unclaimed ticket or a deleted entry, draw again on the random number generator: the new draw is in the list too, and the record shows both, which is exactly what a skeptic would ask to see.

    Classrooms run on the same fairness problem in miniature. Students are sure the teacher picks the same people every time, and teachers are sure the hands that go up belong to the students who already know. Number the class list, put the random number generator on the big screen, and draw. The random number generator does not know who answered last time, and the class can see that for itself. The number picks the student, the class watched it happen, and the argument is over before it starts. For picking names rather than numbers, the spin the wheel page on this site takes a list of names directly; for groups, draw one number per group from the class range with No repeats on and read the groups off in draw order.

    The most random number between 1 and 100

    Ask a room of people to name a random number between 1 and 100, with no random number generator in sight, and the answers pile up in the same places. The famous one is 37. Ask a chatbot and you will get 37 again, often enough that people write forum posts about it. 17 collects its share too. People avoid round numbers because they feel chosen, avoid the edges because they feel exposed, and land in the odd, prime-looking middle because it feels like the sort of number randomness would pick. It is a good trick for reading a room. It is a poor way to draw a number.

    A random number generator has no such habits, and you can watch the difference. Here is a real run from this page: 20 numbers drawn from 1 to 10 with repeats allowed, in the order they landed: 10, 3, 5, 6, 8, 5, 7, 3, 1, 5, 2, 10, 8, 10, 7, 5, 4, 2, 1, 2. Count them and the spread is lumpy: 5 came up four times, 2 and 10 three times each, 9 not at all. Over 20 draws that lumpiness is normal; each number expected about two appearances, and chance does not deal in exact quotas. Over thousands of draws from a random number generator, the counts level out toward even. Over twenty, a run like this is what fairness actually looks like up close, and it looks nothing like the tidy spread a person would invent if asked to fake one.

    So there is no most random number. There are numbers people reach for when they are trying to sound random, and there are numbers a fair random number generator produces, 37 included, at exactly the same rate as all the others.

    If you want the numbers on a wheel

    Some draws are better watched than read. If your list is names, prizes or options rather than a range of numbers, the spin the wheel page on this site puts the list on a wheel and spins it in front of everyone. This random number generator stays the right tool when the entries are numbers in a range, when you need several at once, and when the record of past draws matters. The wheel is the right tool when the list has words on it and the fun of the spin is part of the point. Plenty of people keep both open: the wheel for the show, the random number generator for the record. When the numbers themselves belong on the wheel, the number wheel spinner puts a range on slices and spins to one.

    Frequently asked questions

    What is a random number generator?

    A random number generator is a tool that picks numbers you cannot predict in advance. This one uses the cryptographic randomness built into your browser (the Web Crypto function crypto.getRandomValues) and a method called rejection sampling, so every number in your range has the same chance of being drawn. It draws up to 20 numbers at once, No repeats is on by default, and each draw is kept in a list in your own browser (the list holds your last 40 draws). The random number generator sends nothing to a server.

    Is a random number generator really random?

    The random number generator on this page is pseudorandom in the strict sense, as every software generator is, and it uses the strongest source a browser offers: the cryptographic random function built into the browser itself. There is no seed to set or guess and no sequence to replay, so nobody can predict the next draw from the last one. It is not a hardware generator reading noise from the physical world, and the page does not claim otherwise. For dice games specifically, the online dice roller rolls one to three dice and keeps the totals.

    How do random number generators work?

    Most take a stream of random values from the system and fit them into the range you asked for. The fitting is where fairness is won or lost: squeezing values into a range with a remainder calculation favors some numbers. This random number generator throws away values that fall outside the fair part of the range and draws again, which is the method called rejection sampling, so no number in your range is favored.

    Can a random number generator be predicted, or does it have a pattern?

    Not this random number generator, and not any generator built on a cryptographic source. Patterns can always be found in a list of past draws if you stare at it long enough; that is hindsight, and it tells you nothing about the next draw. Each press of GENERATE on the random number generator starts fresh, and the chance of any number in the range is the same on every press.

    Why did I get the same number twice in a row?

    Because with repeats allowed, it is supposed to happen. In a 1 to 10 range, the chance the next draw matches the last one is 1 in 10, so across a long session it will happen several times. It feels like a fault and it is arithmetic. If your draw cannot use a repeat, turn on No repeats, it is on by default on this random number generator, and a number can appear only once in each draw.

    What number is most likely to win a prize?

    None of them. In a fair draw every number in the range has the same chance, which is the whole point of drawing. Numbers feel likely for human reasons: 7 feels lucky, 37 feels random, a number that has not come up feels due. A fair random number generator gives all three feelings the same odds as everything else.

    How many numbers can I generate at once?

    Between 1 and 20 in a single draw. Ask the random number generator for more and it answers "Choose between 1 and 20 numbers." For a longer run, draw again: with No repeats off the draws continue independently, and every draw is kept in the Previous draws list either way. Want to watch the draw happen one number at a time? The number picker wheel spins for it.

    Are my numbers stored anywhere?

    Only in your own browser. The random number generator keeps your draws, including your last draw, on this device so the list is still there when you come back, and nothing is sent to a server. Clear the Previous draws list whenever you want the record gone.

    Can it pick my lottery numbers?

    It can draw a set for you, in the shape of your game: set the range on the random number generator, set how many, leave No repeats on, and sort the results to read them like a ticket. What it cannot do is improve your odds. Every set of 6 from 49 has the same 1 in 13,983,816 chance, drawn here or chosen any other way.

    Which random number generator is the most reliable?

    The one whose work you can check. A reliable draw names its method, runs where you can watch it, and keeps a record you can read afterwards. This random number generator draws in your browser with a cryptographic source, shows every draw with its time in the Previous draws list, and sends nothing to a server. Judge any random number generator, including this one, by those three tests.

    More free tools

    Numbers in a range belong to the random number generator above. When the job is not a number, the sister tools on this site cover the neighbouring draws: the yes or no wheel for a straight decision, spin the wheel for lists of names and options, the coin flip and dice roller for the two classics, the team wheels for a random side, and the random date draw when the thing being picked is a day rather than a number.

    Last updated: November 2026

    Try the other pickers and generators for dates, coins and more.

    More free tools

    See more from WheelYesNo on Google

    Add us as a preferred source and our free tools will show up more often in your Google results.