Random Number Generator

Generate random numbers in any range, with options for how many, decimals, unique values, and sorting.


  

ToolsSoup's Random Number Generator picks random numbers in any range you choose, right in your browser. Set a minimum and maximum, decide how many numbers to draw, add decimal places for random decimals, and optionally keep every value unique or sort the results. Everything runs locally using your device's cryptographically secure random source, so nothing you generate is ever sent to a server, logged, or stored.

What is a random number generator?

A random number generator (RNG) is a tool that produces unpredictable numbers within a range you define. It's useful for drawing raffle and lottery numbers, picking winners, rolling dice, sampling data, running simulations, assigning random IDs, and making fair, unbiased choices. This tool uses the Web Crypto API (crypto.getRandomValues), the same cryptographically secure source browsers use for encryption, with rejection sampling so every number in the range is equally likely.

How to generate random numbers

Generating random numbers takes only a few seconds:

  1. Enter the minimum and maximum values for the range you want.
  2. Set how many numbers to generate at once.
  3. Set decimal places to 0 for whole numbers, or higher for random decimals.
  4. Optionally tick Unique values to avoid repeats, and Sort to order the results.
  5. Click Generate and copy the numbers in one click.

Whole numbers, decimals, and unique values

Leave decimal places at 0 and both bounds are included, so a range of 1 to 6 generates whole numbers from 1 through 6 — perfect for dice or lottery picks. Increase decimal places to draw random decimals such as 3.14 or 0.5. Turn on Unique values to draw without replacement, like pulling numbered balls from a bag; the range must be wide enough to hold the count you ask for when generating whole numbers.

Why use this random number generator?

  • 100% free with no ads, sign-up, or usage limits.
  • Runs entirely in your browser — generated numbers are never uploaded or stored.
  • Uses the cryptographically secure Web Crypto API, not Math.random().
  • Works with any range, including negative numbers and decimals.
  • Generate unique numbers with no repeats for raffles and draws.
  • Generate up to 1000 numbers at once and copy them all in one click.

Frequently asked questions

Are the numbers truly random?

Yes. The generator uses crypto.getRandomValues, the same cryptographically secure randomness browsers use for encryption keys, and applies rejection sampling so every number in the range is equally likely, with no bias toward any value.

Are the minimum and maximum included?

Yes. The range is inclusive of both bounds. For whole numbers, a range of 1 to 6 can produce 1, 6, and everything in between.

Can I generate random decimals?

Yes. Set decimal places to 1 or more and the generator produces random decimal numbers within your range, rounded to the number of places you choose.

Can I generate unique numbers with no repeats?

Yes. Tick Unique values to draw without replacement. For whole numbers, the range must contain at least as many values as the count you request, otherwise duplicates would be unavoidable.

Is anything sent to a server?

No. Everything is generated locally in your browser. Nothing you create is uploaded, logged, or stored, so your numbers stay private to your device.