Random Number Generator
Generate cryptographically unbiased random integers within any custom minimum and maximum range.
Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.
Interactive Browser Workspace
Loading the interactive Random Number Generator workspace. Enable JavaScript in your browser to run calculations and conversions locally.
How to Use Random Number Generator
- Set Minimum, Maximum, and how many numbers to generate.
- Toggle Allow Duplicates and click Generate.
Methodology & Accuracy
Uses rejection sampling on crypto.getRandomValues (Uint32Array) to eliminate modulo bias.
Examples
- Pick 6 unique lottery-style integers between 1 and 49.
Scope & Limitations
- Supports whole integers up to 1,000 results per batch.
Frequently Asked Questions
Why use Web Crypto instead of Math.random()?
Web Crypto with rejection sampling avoids modulo bias and uses OS-level entropy.
Related Tools
- Random Password Generator - Generate strong, unpredictable passwords using the Web Crypto API (crypto.getRandomValues).
- Random String Generator - Generate cryptographic random alphanumeric, hexadecimal, alphabetic, or numeric tokens.