Skip to content
Tiny Tools

Random Number Generator

Generate one or many random integers in any range using your browser's cryptographically secure randomness. Optional unique values and no modulo bias.

About this tool

Generate random whole numbers within a range you choose. You can produce a single number or a list, and optionally require all values to be unique — handy for draws, raffles and sampling.

Randomness comes from the Web Crypto API, and the generator uses rejection sampling to avoid the subtle bias that simple modulo approaches introduce.

Examples

  • Pick a number between 1 and 100
  • Draw 6 unique numbers between 1 and 49 for a lottery-style pick
  • Generate 10 dice rolls between 1 and 6

Frequently asked questions

Is this random number generator secure?

It uses the browser's cryptographically secure random source (Web Crypto). That is far stronger than Math.random and suitable for most everyday and security-adjacent needs.

What does "unique values" do?

When enabled, the generator never repeats a number in the same batch. The count is capped at the size of the range.

Can it generate decimals?

This tool produces whole numbers (integers). For ranges, set the minimum and maximum you need.

More tools