🎲 Random Number Generator

Generate secure random integers within a range.

Random


How it works

How it works

We sample from the browser's cryptographically secure PRNG and use rejection sampling to avoid modulo bias.

  • Uniform 32‑bit integers are drawn with crypto.getRandomValues.
  • Values above the largest multiple of the range are discarded so each outcome has equal probability.
  • This is suitable for tokens and picks, but not a substitute for a full CSPRNG design.
Privacy & Security

All random values stay in your browser.

Accuracy, Limits & Tips

Range limited by 32-bit space; extremely huge spans not supported.

Examples
  • Lottery style pick between 1 and 60.
  • Random ID between 1000 and 9999.

Related tools

Looking for broader guides and best practices? Visit the ToolsAreUs Blog for indexes (like the full tool list) and articles (e.g. secure password generation).