How to use this random number generator

Enter the smallest and largest values you will accept — both ends are included — and choose how many numbers you want, from one pick up to 100 at once. Leave Allow duplicates on if repeats are fine, or switch it off when every number must be different, and turn on Sort results to list the draw in ascending order. Press Generate and your numbers appear as chips, with their smallest, largest, sum and average. Copy All puts them on your clipboard as a comma-separated list.

How the randomness works

Quick answer: the numbers come from crypto.getRandomValues, your browser's cryptographic random source, filtered through rejection sampling so no value is favoured. Math.random — the predictable generator many pages use — is never used here.

Most simple generators take a random value and use the remainder after dividing by the range size. That shortcut quietly favours some numbers, because the random values do not divide evenly by every range — the bias is small, but real. This tool avoids it with rejection sampling: it works out the largest multiple of your range size that fits inside the 32-bit values it draws, throws away any draw above that limit, and draws again. What survives maps onto your range perfectly evenly: from 1 to 6, each face gets the same one-in-six chance; from 1 to 100, every number gets exactly one percent.

Duplicates on or off?

The right setting depends on the job. Leave duplicates on when each pick should be independent of the others — dice rolls, one number per player, sampling where repeats carry information. Two dice can honestly land double six; blocking repeats would distort the odds. Switch duplicates off when the same number must not win twice: raffle winners, lottery-style lines, presentation order, or picking students for different questions. With duplicates off, the tool checks your range can actually supply that many unique numbers, and tells you plainly if it cannot.

Common uses, with the settings for each

JobMinimumMaximumHow manyDuplicates
Roll one die161On
Roll two dice162On
Lottery-style line1496Off
Pick a student130 (class size)1On
Raffle winner from 250 entries12501Off
Draft or presentation order112 (teams)12Off

The same pattern covers coin-flip decisions (1 to 2), survey sampling, choosing a page or row at random, and breaking ties. For a single number, the defaults are already close — just set the maximum.

Tips for a fair draw

  • Fix the range before you draw. Agree the minimum, maximum and number of picks first — changing the rules after seeing a result is how draws stop feeling fair.
  • Draw in the open. For giveaways, generate on a shared screen or post a screenshot of the numbers — the page keeps no history, so that record is your proof nothing was re-rolled.
  • Match duplicates to the job. One entry should not win two prizes — turn duplicates off. Independent events like dice should keep them on.

Honest limitations

This generator draws whole numbers only — no decimals, fractions or weighted results where some numbers are more likely than others. It generates at most 100 numbers per draw, across ranges up to about 4.3 billion wide. Most importantly, it is not a certified or audited random number system: regulated lotteries, licensed gambling and formal research randomisation use certified equipment and audited processes, and this page is not a substitute for those. What it offers is a genuinely unbiased draw for games, giveaways, classrooms and everyday decisions — running entirely on your device, with nothing you enter ever sent or stored.