✨ Random Number Generator — Pick Numbers in a Range

Set the minimum, maximum and how many numbers you need. Get cryptographically random results.

Generators Free · no sign-up Reviewed 2026-11-03
Input
Result

Private by design. This tool runs entirely in your browser — nothing you enter or add is uploaded to any server.

What this tool does

The random number generator produces one or more numbers between a minimum and a maximum. It supports whole numbers and decimals, an optional uniqueness constraint, and up to 100 values per run. Randomness comes from the browser's crypto.getRandomValues API rather than Math.random.

When both bounds are integers, the tool generates integers from the minimum to the maximum inclusive. When either bound is a decimal, it generates a decimal value in the range. With uniqueness enabled, it retries until it has the requested count of distinct values or gives up after a bounded number of attempts, which prevents an infinite loop when the range is too small.

The generator is useful for sampling, simulations, games and test data. For scientific work that needs reproducible results, use a seeded generator instead: this tool deliberately has no seed because its purpose is unpredictable output, not repeatability.

When to use it

  • Draw a random sample of ticket or order numbers.
  • Generate test values for a form or an API.
  • Pick a random score or dice-like result for a game.
  • Create several distinct random IDs within a range.
  • Simulate a simple random process for teaching.

How it works

  1. Enter the lower and upper bounds.
  2. Choose how many numbers to produce.
  3. Optionally require unique values. Click Generate.

Worked example

Set the minimum to 1, the maximum to 100, the count to 5 and enable Unique. The tool might return 17, 3, 88, 42 and 61. Every value lies between 1 and 100 inclusive and no value repeats. If you ask for 10 unique numbers between 1 and 5, the tool reports that it cannot generate enough unique values, because the range contains only five possible integers.

  • Min 1, max 6, count 1 simulates a die roll.
  • Min 0, max 100, count 5 with unique gives five different numbers.
  • Decimals are supported if you use non-integer bounds.

Accuracy and limitations

  • The integer path uses a modulo operation on a 32-bit random value, which introduces a very small bias when the range does not divide evenly into 2³².
  • Uniqueness is enforced by retrying; a range that is too small for the requested count returns an error instead of looping forever.
  • There is no seed, so results cannot be reproduced exactly for debugging or scientific replication.
  • The count is capped at 100, and decimal ranges are sampled continuously rather than snapped to a step size.

Privacy and data handling

Generation uses your browser's secure random source and runs locally. No numbers or settings are uploaded or stored.

Frequently asked questions

Are the numbers truly random?

Yes. The generator uses the browser's crypto.getRandomValues for cryptographic randomness.

What happens if unique is checked and the range is too small?

The tool reports an error if it cannot produce enough unique numbers.

Is anything stored?

No. Generation is local and the page keeps no history.

Are the bounds inclusive?

Yes for integer mode: choosing 1 to 100 can return 1 or 100. Decimal mode samples within the range.

Why did unique mode fail?

You asked for more distinct values than the range can provide, or the retry limit was reached. Widen the range or reduce the count.

Can I reproduce the same sequence later?

No. The generator has no seed and is designed for unpredictable output. Use a seeded PRNG in code when you need repeatability.