Skip to content

Random Number Generator

Generate one or many random integers between any two numbers. Useful for drawing lottery-style picks, picking winners, creating practice problems or making fair decisions. Unique mode prevents repeats within the range.

What this means

A random integer from a range means every value in that range has an equal chance. Crypto-based randomness ensures the result cannot be predicted or influenced.

How we calculate it

Formula

Each value v satisfies min ≤ v ≤ max, drawn uniformly via crypto.getRandomValues.

Worked example

Pick 5 unique numbers between 1 and 60:

  1. 1Set min to 1 and max to 60.
  2. 2Choose count 5 and enable unique.
  3. 3Generate to get 5 distinct numbers.

Important assumptions

  • Unique mode caps the count at the range size.

Frequently asked questions

Are the numbers truly random?

Yes. They come from the browser's cryptographic random generator, designed for unbiased unpredictable values.

What if my min and max are negative?

Negative ranges work the same way. For example, -10 to 10 with count 1 gives any integer in between.

Guide

Password Generator Guide: Length, Entropy and Security

The strongest passwords are long and random. Here is why length matters more than complexity.

Read next

Related tools