Maths & numbers

Random number generator

Generate random integers within a range. Options for unique values, sorted output and multiple draws. Uses cryptographic randomness.

  • Free, no sign-up
  • No data stored
  • Reviewed 2026-01-15

Your details

Results

Random numbers 84 49 19 17 90 96 Range: 1 to 100
Sum
355
Mean
59.17
Minimum
17
Maximum
96

Comma separated

84, 49, 19, 17, 90, 96

One per line

84
49
19
17
90
96

Csprng note

About the Random Number Generator

Generate one or more random integers between any minimum and maximum value. The generator uses PHP's cryptographically secure random_int() function. Enable "unique" to prevent duplicates (like a lottery draw).

How to use the Random Number Generator

  1. Set the minimum and maximum values.
  2. Choose how many numbers to generate.
  3. Optionally require unique values.
  4. Optionally sort the output.
  5. Click calculate to generate.

Frequently asked questions

Is this truly random?

It uses random_int() backed by the operating system's CSPRNG. It is suitable for any non-gambling random selection.

Can I generate lottery numbers?

Yes. Set min=1, max to the pool size, count to the draw size, and tick "unique". Note: this is for fun — official draws use certified hardware.

What if I need more numbers than the range allows?

With "unique" enabled, you cannot generate more numbers than the range size. The tool will warn you.