Random Number Generator
Generate truly random integers or decimals in any range — single results or batches of up to 1,000. The Basic tab covers everyday ranges; the Comprehensive tab supports numbers up to 999 digits long using BigInt arithmetic. Everything runs client-side in your browser via the Web Crypto API — nothing ever leaves your device.
Click Generate to produce numbers.
Why Use This Random Number Generator?
Most random functions — including JavaScript's native Math.random() — use deterministic algorithms that can be predicted or replicated given knowledge of their seed. This tool uses the browser's Web Crypto API (crypto.getRandomValues) with a Uint32Array for standard ranges, and a rejection-sampling BigInt algorithm for arbitrary-precision numbers. Every result is drawn from the OS entropy pool, making it genuinely unpredictable and suitable for security-sensitive applications, statistical sampling, game design, and fair selection processes — all without a single byte leaving your browser.
Cryptographically secure: Powered by crypto.getRandomValues() — the same CSPRNG used for encryption key generation — ensuring every result is genuinely unpredictable, unlike the deterministic Math.random() built into JavaScript.
Arbitrary-precision numbers: The Comprehensive tab uses BigInt arithmetic with rejection sampling to handle integers and decimals with up to 999 digits — far beyond the 53-bit limit of standard JavaScript floating-point numbers.
Fully client-side privacy: No numbers are ever transmitted to a server, logged, or stored anywhere. All generation runs locally in your browser, so your results and usage patterns remain completely private.
Bulk generation with deduplication: Generate up to 1,000 unique numbers in one click using optional duplicate prevention backed by a Set-based tracking algorithm, then export the full list as a plain-text .txt file.
Flexible sorting and export: Sort results ascending or descending before copying or downloading — useful for statistical analysis, lottery draws, classroom exercises, or any workflow that needs ordered random sequences.
How to Use the Random Number Generator
Choose a tab: use Basic for everyday ranges (up to ±1,000,000) or Comprehensive for giant integers or high-precision decimals.
Set your range: enter Min and Max values, then pick Single for one result or List and set your desired count (up to 1000).
Configure options: toggle duplicate prevention and choose a sort order. In Comprehensive mode, also pick Integer or Decimal and set the number of decimal places.
Copy or download: click Copy to grab a single result, Copy All for the full list, or Download .txt to save as a file.