Skip to content

Random Number Generator

Pick one random number or a whole list from any range, with optional unique values and sorting.

  • 100% free
  • Runs in your browser
  • Instant results
Quick answer

This random number generator picks whole numbers between a minimum and a maximum that you set, both included. It draws from the browser's cryptographic random source and rejects values that would skew the odds, so every number in the range is equally likely. Ask for up to 10,000 numbers, unique or repeating.

How to use the Random Number Generator

  1. Set the rangeEnter the lowest and highest numbers allowed. Both ends are included, and negative numbers work.
  2. Choose how manyAsk for a single number or a list of up to 10,000. Tick "No repeats" for a draw without duplicates.
  3. GeneratePress the button. Copy the result, or press again for a fresh draw.

How the random number generator works

The random number generator asks your browser for random bits through crypto.getRandomValues, the same source used for encryption keys. That is stronger than the Math.random function many simple tools rely on, which is fast but predictable.

Turning random bits into a number in your range needs care. The quick method, taking the remainder after dividing by the size of the range, makes some results slightly more likely than others whenever the range does not divide evenly into the available values. This is called modulo bias. The tool avoids it with rejection sampling: any raw value that falls in the uneven leftover part is discarded and drawn again, so each number from minimum to maximum has exactly the same chance.

With "No repeats" ticked, numbers are drawn like balls from a bag using a partial Fisher-Yates shuffle, so every possible set, in every order, is equally likely.

Common uses

  • Prize draws: number your entries, then draw winners with "No repeats" on.
  • Lottery-style picks: for example 6 unique numbers from 1 to 49, sorted lowest to highest.
  • Classroom and research: choose a random sample of rows, students or test cases.
  • Games: pick a number for others to guess, or decide who goes first.

If you want to draw names directly, the random name picker saves you the numbering step, and the dice roller handles tabletop rolls.

Limits and things to know

The tool produces whole numbers only. If you enter decimals, the range is narrowed to the whole numbers inside it. A range can contain up to 4,294,967,296 different values, and one draw can return up to 10,000 numbers. For a list, the sum and average are shown as a quick sanity check.

Random does not mean evenly spread. Streaks and repeats are normal in short runs: in 10 numbers from 1 to 10 with repeats allowed, seeing the same value twice is far more likely than not. Results are generated on your device and are not recorded, so the tool cannot serve as a certified or audited draw where regulations require one.

Frequently asked questions

Is this random number generator truly random?

It uses your browser's cryptographically secure generator, which is seeded by unpredictable events collected by your operating system. That is suitable for draws, games and sampling.

Are the minimum and maximum included?

Yes. A range of 1 to 10 can return 1, 10 or anything in between, each with the same probability.

How do I pick numbers without repeats?

Tick "No repeats". The tool then draws without replacement, so every number in the list is different. The count cannot be larger than the number of values in the range.

Can I generate negative numbers or decimals?

Negative whole numbers work: set a negative minimum. Decimals are not supported; the tool returns whole numbers only.

Can I use it to pick lottery numbers?

Yes, for example 6 unique numbers from 1 to 49. Random picks are as likely to win as any other combination, no more and no less.

Last updated 24 November 2026 by the TheTechFolk team.