Skip to content
2x2xKit

Random Number Generator

Generate random numbers within a range, with or without duplicates.

How this is calculated
Number = min + floor(random() × (max − min + 1))

Assumptions used in this calculation

  • Random source: Numbers are generated using the browser's Math.random(), a fast general-purpose PRNG that is not cryptographically secure.

About this calculator

The random number generator picks one or more random integers within a specified range, with an option to allow or disallow duplicate values.

Worked example

5 numbers between 1 and 100

Result: 5 random numbers

Was this helpful?

Frequently asked questions