Random Number Generator

Generate one or many random integers in any range, with or without repeats.

How to use the Random Number Generator

  1. Enter or choose the minimum.
  2. Enter or choose the maximum.
  3. Enter or choose the how many numbers.
  4. Enter or choose the no repeats.
  5. Enter or choose the sort results.
  6. Results update instantly as you type — press Calculate any time to refresh.

Formula

Each number = min + floor(random × (max − min + 1)).

About this calculator

Generate random whole numbers within any range — for raffles, games, sampling, or picking a winner. Turn on "No repeats" to draw unique numbers, like lottery balls. Numbers come from your browser's cryptographically secure random generator when available.

Frequently asked questions

Are the numbers truly random?

They come from a cryptographically secure pseudo-random generator, which is suitable for everyday and most fairness purposes.

How do I get a new set?

Press Generate again or change any setting.