Random Number Generator

By the ToolPocket team · Updated 2026-12-05 · Editorial standards

Random numbers are useful for giveaways, sampling, games and picking a restaurant when nobody can decide. This generator uses the browser's cryptographically secure random source rather than a predictable pattern.

Choose a minimum and maximum, decide how many numbers you need and whether duplicates are allowed. The result appears instantly.

Runs locally in your browser — nothing is uploaded.

How to use the Random Number Generator

  1. Set the minimum and maximum values.
  2. Choose how many numbers to draw and whether duplicates are allowed.
  3. Press Generate; copy the list if you need it.

Frequently asked questions

Are the numbers truly random?

They come from crypto.getRandomValues, a secure random source provided by the browser. They are suitable for games and draws, though not for cryptographic key generation.

Why did it refuse without duplicates?

You cannot draw more unique numbers than the range contains. Widen the range or allow duplicates.

Can I use decimals?

The generator produces whole numbers. Use the percentage or unit tools for decimal calculations.

Good to know

Uniformity is the hard part. A naive value % max is biased unless max divides the generator's range evenly, which is why cryptographic random APIs offer a dedicated range function. This tool uses the browser's crypto source when available.

Math.random is fine for a dice roll or a game, but not for tokens, passwords or anything an attacker can profit from predicting. Choose the source according to the threat, not the convenience.