Math

Random Number Generator

Random integers in any range, with or without repeats.

Enter your values

ⓘ Live results

Results
Numbers
60, 76, 35, 5, 66, 27
Sorted
5, 27, 35, 60, 66, 76
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.

Worked example

Using the values the calculator loads with:

Inputs

  • Minimum1
  • Maximum100
  • How many numbers6
  • Allow repeatsNo — unique numbers

Results

  • Numbers99, 15, 89, 69, 32, 27
  • Sorted15, 27, 32, 69, 89, 99
  • Range1 to 100 (100 possible)
  • Sum331

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.

About this calculator

Results are estimates for general information. For medical, legal, structural or financial decisions, confirm with a qualified professional.