100% freeno sign-upfiles never leave your device
  1. Tools
  2. Files & Text

Random Number Generator – Numbers, Dice, Coin Flip and List Picker

Draw random numbers in any range, with or without repeats, roll up to six dice from d4 to d20, flip a coin up to 10,000 times or pick winners from your own list. Results come from your browser's secure random generator and are never uploaded.

  • 100% free
  • No sign-up
  • Files never leave your device

Tool

Up to 1,000.

Result

Results come from your browser's cryptographically secure random generator (crypto.getRandomValues). They are unpredictable, not influenced by earlier draws and never sent anywhere.

Result history

    No results yet. History is kept on this page only and disappears when you close it.

    How to use the random number generator

    1. Pick a tab. Number draws integers from a range you choose, Dice rolls one to six dice from d4 to d20, Coin flip tosses up to 10,000 coins and Pick from list chooses one or more lines from your own list.
    2. Fill in the options. For numbers that means the lowest value, the highest value, how many you want and whether repeats are allowed. Both ends of the range are included, so 1 to 6 can return 1 and 6.
    3. Press the big button. The result appears straight away, together with a time stamp, and is added to the history underneath so you can look back at earlier draws.
    4. Use Copy result to paste the numbers into a message or spreadsheet. Nothing is stored after you close the page.

    A fair, private random generator for everyday decisions

    People need random numbers more often than they think. A teacher wants to call on a student without favoritism, a game night needs a fair d20, a small business owner picks a giveaway winner from a numbered list of entries, and a developer needs sample data. Others simply want to settle an argument over who pays for lunch. This page covers all of those cases in one tool, with no sign-up and no ads in the way of the controls.

    The generator uses the Web Cryptography API built into your browser, the same source of randomness used for encryption keys. Unlike the simple Math.random() function behind many quick online generators, it is designed to be unpredictable. The code also avoids a subtle mistake called modulo bias: when a random 32-bit value is simply divided into a smaller range, some results can come up slightly more often than others. Here, values that would cause the imbalance are discarded and drawn again, so each number in your range has exactly the same chance.

    The four modes in detail

    Random numbers

    Choose any whole-number range, including negative numbers, such as -50 to 50. The "No repeats" option draws without replacement, like pulling numbered balls from a bag, so you can build a lottery-style list of distinct values or shuffle the numbers 1 to 30 into a random order. Without it, each draw is independent and the same value can appear several times, just like rolling a die repeatedly. You can also sort the output from lowest to highest or the other way around, which is convenient when you need six unique picks for a raffle sheet in order.

    Dice

    The classic six-sided die is preselected, but tabletop role-playing players can also roll d4, d8, d10, d12 and d20 dice. With more than one die, the tool shows each face and the total, so a "3d6" roll for a character stat appears as 4 + 2 + 6 = 12. A fair die gives every face a probability of one in the number of sides, so on a d20 a natural 20 turns up five percent of the time.

    Coin flip

    A single flip gives heads or tails. For larger numbers, the tool reports how many of each came up and the percentages, which is a good way to see the law of large numbers in action: with 10 flips you might get 7 heads, while with 10,000 flips the split gets very close to 50/50. It also makes a handy classroom demonstration of probability.

    Pick from a list

    Type the names of students, restaurants, movies or giveaway entries, one per line, and let the tool choose. Blank lines are ignored. Leave "No repeats" ticked to get several different winners, or untick it to allow the same line to be picked more than once.

    Good to know: The tool is meant for casual, educational and creative use. It is not a certified random number generator, so do not use it for regulated lotteries or gambling, and it should not be used to create passwords. For passwords, use the Password Generator, which is built for that job.

    Common uses for a random number generator

    • Classrooms: choose who answers next, form random groups by shuffling a roster, or let students compare how real coin-flip results differ from the theoretical 50/50 split.
    • Games and role-play: roll the dice you forgot to bring, resolve a tie, decide who goes first or generate random encounters from a numbered table.
    • Giveaways and raffles: number your entries, then draw a winner and a few runners-up without repeats. Screenshot or copy the result, together with its time stamp, so you can show how it was done. Check local rules before running a promotion that involves prizes.
    • Testing and development: generate sample IDs, quantities or ages, or pick random rows from a data set to review by hand.
    • Everyday choices: decide what to cook, which movie to watch or who does the dishes. Putting the options in the list tab removes the argument and the bias.
    • Statistics and sampling: pick a simple random sample of records from a numbered list. For formal research use proper sampling software and document the method.

    Understanding randomness: a few myths

    Random does not mean evenly spread. If you ask for ten numbers between 1 and 10, it is perfectly normal to see the same number two or three times and to miss a few values altogether. Humans tend to judge sequences as "not random enough" when they contain streaks, yet streaks are exactly what true randomness produces. Five heads in a row happen in about three of every hundred sets of five flips.

    The gambler's fallacy is the belief that a result is "due" because it has not occurred for a while. Each draw here is independent, so after nine tails the next flip is still a fifty-fifty chance. The history list is there for reference, not to predict anything.

    Finally, the word "random" says nothing about how a result is used. If you promise a fair draw, show your method, keep the entry list fixed before drawing and let participants watch. Those steps matter more than the generator itself.

    Tips for better results

    To simulate a die roll with the number tab, use a range of 1 to 6. To draw a random percentage, use 1 to 100. To choose a random day of the month, use 1 to 31 and ignore results that are too large for your month. To shuffle a list of names, put them in the list tab, set the number of picks to the length of the list and keep "No repeats" ticked; the order of the output is the shuffled order. For very large ranges up to about 4.29 billion, the number tab still works instantly, but the unique mode keeps a set of values already drawn, so draw fewer than a thousand at a time.

    Private by design

    Every number is created on your device by your browser. The ranges, lists and results you enter are not uploaded, logged or tied to an account, and the page works offline after it has loaded. Closing the tab clears the history.

    Frequently asked questions

    Is this random number generator truly random?

    It uses the Web Cryptography API (crypto.getRandomValues) in your browser, which draws on the operating system's secure randomness source. That makes results statistically fair and unpredictable for everyday use. Strictly speaking it is a high-quality pseudo-random generator, not a physical device such as a hardware noise source.

    Why not just use Math.random()?

    Math.random() is fast but not designed to be unpredictable, and its quality differs between browsers. The cryptographic generator is slightly slower but has no known bias or pattern, and the code here also removes modulo bias so every number in your range is equally likely.

    Are both the lowest and highest numbers included?

    Yes. The range is inclusive on both ends. With a range of 1 to 6, both 1 and 6 can come up, and each has the same probability as every number in between.

    How do I draw numbers without repeats, like a lottery?

    Tick "No repeats" in the Number tab, enter the range, for example 1 to 49, and set how many numbers you want, for example 6. Each number can then appear only once. The tool tells you if you ask for more unique numbers than the range holds.

    Can I use this to pick a giveaway winner?

    Yes, for casual giveaways. Number the entries, draw with no repeats and keep the result and time as a record. Rules for promotions and sweepstakes vary by country and state, so check the legal requirements before you offer prizes. For regulated lotteries, use an approved system.

    Can I use the generated numbers as passwords or security keys?

    No. Passwords need a different format, with letters, digits and symbols, and a much larger search space. Use the Password Generator on this site for that. Never use short random numbers as security codes.

    How many numbers or dice can I generate at once?

    Up to 1,000 numbers or list picks, 10,000 coin flips and 6 dice per roll. These limits keep the page responsive on phones. If you need more, run the tool several times and combine the results.

    Does the tool keep my lists or results?

    The history is held in memory on this page only and disappears when you close or reload it. Nothing is uploaded, and the tool sets no cookies and stores nothing in your browser's long-term storage.

    Related tools

    Need custom software, a faster website or help with digital projects? The team at Bilişim Ajans can help.