Math

Random Number Generator

Random integers in any range, with or without repeats.

Enter your values

Results update instantly as you type — no submit needed.

Results
Numbers
51, 73, 45, 8, 88, 4
Sorted
4, 8, 45, 51, 73, 88
Range
1 to 100 (100 possible)
Sum
269

Quick answer

A random integer between min and max inclusive is floor(random × (max − min + 1)) + min.

How to use the Random Number Generator

  1. 1Set the minimum and maximum.
  2. 2Choose how many numbers you want.
  3. 3Decide whether repeats are allowed.

Frequently asked questions

Is this truly random?

It uses the browser's pseudo-random generator — fine for games and draws, but not for cryptography or regulated lotteries.

Can I use it for a raffle?

Yes, for informal draws. Use unique numbers so no ticket is picked twice.