Random

Random Number Generator

Details

How to use Random Number Generator

What the tool does, how to run it, and what to expect from the result.

How to generate random numbers

Random numbers are needed for draws, sampling, test data, and games. The important properties are that the distribution is uniform, so no number is favoured, and that the source is unpredictable.

This generator uses your browser's cryptographically secure random number generator with rejection sampling, which removes the modulo bias that a naive implementation would have. Nothing is transmitted.

  • Set the minimum and maximum, remembering that both ends are included in the range.
  • Set how many numbers you want, up to 1,000.
  • Generate and copy the results.
  • Remove duplicates yourself if each number must be unique, since every draw is independent and repeats are expected.
  • Use a seeded generator instead if you need to reproduce the same sequence, since a cryptographic generator cannot be seeded.

Random number between 1 and 10, 1 and 100, or any range

The range is whatever you type. For a random number between 1 and 10, set the minimum to 1 and the maximum to 10; for 1 to 100, change the maximum. Both ends are always included, so 1 and 10 are each as likely as any number between them, and the same two fields cover lottery-style picks, page numbers, seating orders, and test data.

When you draw several numbers, repeats are normal, because every draw is independent. For a raffle where each number can only win once, generate more than you need and strike out the duplicates, or draw one number at a time and cross entries off the list.

A fair pick, generated on your device

The numbers come from crypto.getRandomValues, the browser's cryptographically secure generator, with rejection sampling so that no part of the range is favoured. A naive generator that takes a big random value modulo the range size quietly makes the low numbers slightly more likely; this one discards the biased tail and redraws instead.

Everything happens in the page. No request is made, no draw is logged, and nobody, including this site, can see which numbers you generated. That also means it works offline once the page has loaded, and there is no account, no cost, and no limit on how often you can draw.

Tips

Getting a better result out of Random Number Generator

Specific settings and thresholds, not general advice.

  • Duplicates are expected, not a bug. Each number is drawn independently, so repeats will happen, and they happen far sooner than intuition suggests: drawing 23 numbers from a range of 365 gives you better than even odds of a repeat. If you need unique draws, generate more than you need and remove the duplicates.
  • The numbers come from crypto.getRandomValues with rejection sampling, so the distribution is genuinely uniform. A naive implementation that takes a random value modulo the range size makes the lower numbers slightly more likely, and this one deliberately discards the values that would cause that bias.
  • There is no seed, so the output is not reproducible. That is the right property for a raffle and the wrong one for a simulation, where you need to rerun an experiment and get the same sequence back. Scientific work needs a seeded generator, not a cryptographic one.
  • The range is inclusive at both ends. Setting 1 to 6 can return a 1 and can return a 6, which is what you want for a die and not always what you want when translating from a language whose range functions are exclusive at the top.
  • For anything where money or fairness is at stake, the generator is only half the problem. A visible, verifiable process matters more than the algorithm: a public draw that anyone can watch is more convincing than any claim about a random number generator, however good it is.
Limits

What Random Number Generator does not do

The honest boundary, so you do not lose time finding it yourself.

  • It has no unique mode, so a set of numbers with no repeats has to be produced by generating extra and deduplicating.
  • It cannot be seeded, so the results are not reproducible and it is unsuitable for simulations that need to be rerun.
  • It produces integers only, with no decimals and no control over precision.
  • It is uniform only, so there is no normal, weighted, or otherwise shaped distribution.
At a glance

Who Random Number Generator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Developers, designers, and anyone who needs quick, private generated values.

Ideal for

Generating values on demand without a backend, install, or sign-up.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

How do I get a random number between 1 and 10?

Set the minimum to 1, the maximum to 10, and how many to 1, then press Generate. Both ends are included, so every number from 1 through 10 has exactly a one in ten chance. The same fields handle 1 to 100 or any other range.

How many numbers can I generate at once?

Up to 1,000 in a single click. They come out one per line, which pastes cleanly into a spreadsheet column, and the Copy button grabs the whole list.

Can it generate decimals?

No, integers only. For a decimal, generate over a scaled range and divide: numbers from 0 to 100 divided by 100 give you two-decimal values from 0.00 to 1.00, uniformly distributed.

Can I use it for a raffle or giveaway?

Yes. Number the entries, generate one number in that range, and the winner is the matching entry. Draws are cryptographically uniform, but remember that each draw is independent, so for multiple winners you should discard duplicate numbers. For public trust, share your numbered list before you draw.

Is the random number generator free?

Yes, with no signup and no usage cap. It is a small piece of JavaScript that runs in your browser tab, so there is nothing to install and it works offline once loaded.

Why do I keep getting the same number twice?

Because each draw is independent, which means repeats are not merely possible but expected. The intuition that a random list should have no duplicates is the same intuition the birthday paradox demolishes: in a group of 23 people, there is a better than even chance that two share a birthday, despite there being 365 possibilities. If you are drawing 10 numbers from 1 to 100, a repeat is not remarkable at all. For a raffle where each entry can only win once, generate more numbers than you need and discard the duplicates.

How random is it really?

It uses crypto.getRandomValues, the browser's cryptographically secure generator, which is seeded from the operating system's entropy pool rather than from a clock. It also applies rejection sampling, which means values landing in the biased tail of the 32-bit range are thrown away and redrawn. Without that step, taking a random 32-bit number modulo your range would make the lowest numbers appear very slightly more often. The effect is tiny, and correcting it is cheap, so there is no reason to accept it.

Can I reproduce the same sequence again?

No, and that is deliberate. A cryptographically secure generator has no seed you can set, which is precisely what makes its output unpredictable. If you need reproducibility, for example to rerun a simulation or debug a test that failed on a particular sequence, you need a seeded pseudo-random generator such as a Mersenne Twister or a small xorshift, where the same seed always yields the same stream. The two goals are in direct opposition: unpredictable and reproducible cannot both be true.

Is the range inclusive?

Yes, at both ends. A minimum of 1 and a maximum of 6 can produce both a 1 and a 6, giving the six outcomes of a die. This differs from many programming languages, where a range function excludes the upper bound, so if you are transcribing a range from code, check whether you need to add one to the maximum.

Is anything sent to a server?

No. The numbers are generated by your browser and never transmitted, so a draw made here is not visible to anyone but you.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon