Home Generators & Utilities Random Number Generator

Random Number Generator

Generate one or many random integers within a range. Optionally unique (no repeats). Uses the browser’s cryptographically secure random source.

Inputs

Max 1,000.
Generated numbers
Min generated
Max generated
Sum
Average

About Random Number Generator

How random is it?

Each number uses crypto.getRandomValues with rejection sampling — the same approach used for security-critical randomness. No modulo bias even for awkward range sizes.

When to use unique

For lotteries, raffles, or any case where the same number shouldn’t appear twice. With duplicates allowed (the default), each generation is independent.

Range examples

Lottery: 1–49 unique, 6 numbers. Dice: 1–6 with duplicates. Random year between 1900 and 2100. Random IPv4 octet: 0–255. Decimal? Multiply: 0–999 for 3 decimal places, then divide by 1000.