Skip to content

Random Number Generator

Random integers in any range, with or without repeats.

Reviewed by the Calculation Machine team · How we check our maths

Your values

ⓘ Live results

Results
Numbers
97, 88, 45, 23, 50, 89
Sorted
23, 45, 50, 88, 89, 97
Range
1 to 100 (100 possible)
Sum
392

Quick answer

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

Worked example

Worked example

Using the values the calculator loads with.

Inputs

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

Result

  • Numbers50, 74, 11, 43, 23, 13
  • Sorted11, 13, 23, 43, 50, 74
  • Range1 to 100 (100 possible)
  • Sum214

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.

About this calculator