Random Number Generator

Random integers or decimals in any range — cryptographically secure and generated on your device.

About this tool

Most online random number generators use Math.random(), which is fine for games but not designed to be unpredictable. This generator draws from the Web Crypto API with an unbiased algorithm, and adds the practical options: how many numbers, unique draws, sorting and decimal precision.

How to use it

  1. Set the min and max, how many numbers you want, and whether you need integers or decimals.
  2. Tick Unique for draws without repeats (lottery style) and Sort for ordered output.
  3. Click Generate — every click is an independent draw.

Good to know

  • Uniqueness is enforced by rejection sampling — if the integer range is smaller than the count, the tool tells you instead of looping forever.
  • For cryptographic keys, prefer the dedicated UUID or password generators, which format entropy for those jobs.
  • All randomness is produced locally; nothing is recorded.