About Random Number Generator

Generates batches of random numbers using Math.random() with configurable minimum, maximum, quantity (up to 1,000), integer or decimal format with adjustable decimal places (0–10), and an option to enforce uniqueness by disallowing duplicates. Results display in a grid and can be copied to clipboard or downloaded as a text file with one number per line.

  • Duplicate prevention uses a Set and retries up to 1,000 attempts per number
  • Decimal mode rounds to the specified number of decimal places using toFixed()
  • Grid display adapts to 5 columns on mobile, 10 on wider screens
  • Copy outputs newline-separated values; download produces a .txt file

Frequently Asked Questions

Is this cryptographically secure?
No. It uses Math.random(), which is a pseudorandom number generator unsuitable for cryptographic purposes. For security-sensitive applications (tokens, keys, passwords), use the Web Crypto API’s crypto.getRandomValues() instead.
What happens if I request more unique numbers than the range allows?
The generator caps retries at 1,000 per number. If the range is exhausted (e.g., requesting 100 unique integers from 1–50), it will silently produce fewer numbers than requested rather than hang.

More Generators Tools

All Generators tools