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 41 16 84 52 89 81 Range: 1 to 100
Sum
363
Mean
60.50
Minimum
16
Maximum
89

Comma separated

41, 16, 84, 52, 89, 81

One per line

41
16
84
52
89
81

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.