Random Number Generator
Generate cryptographically secure random numbers with full control over range, count, format, and uniqueness. Choose integers or decimals, allow or prevent duplicates - perfect for lotteries, testing, and sampling.
FAQ
The generator uses the Web Crypto API (crypto.getRandomValues) when available, providing cryptographically secure pseudorandom numbers. This is suitable for most use cases including cryptographic key generation and security applications.
When unique mode is enabled, each generated integer will be different. If the range (max - min + 1) is smaller than the count, an error is shown since unique values aren't possible. This only works with integer numbers, not decimals.
The generator supports any integer range within JavaScript's safe integer limits (±9,007,199,254,740,991). For practical use, ranges from -1,000,000 to 1,000,000 work instantly. For unique numbers, the range must be larger than or equal to the count you request — otherwise the tool shows an error.
There's no hard limit, but generating millions of numbers at once may cause browser performance issues. For unique integers, the count must be ≤ (max - min + 1). For practical use, batches of up to 10,000 numbers generate nearly instantly. For very large batches, consider generating in smaller chunks.
The generator uses cryptographically random values from the Web Crypto API, which cannot be seeded. If you need reproducible random sequences (e.g., for testing or procedural generation), use a seeded PRNG library in your own code instead — this tool provides true randomness, not deterministic pseudo-randomness.
Decimal numbers are displayed with 4 decimal places. The underlying random value uses the full 32-bit range from the crypto API, giving high precision within the specified min-max range.
More tools
Random String Generator
Generate random strings with configurable length, character sets, and custom chars.
Color Palette Generator
Generate beautiful color palettes with analogous, complementary, and other modes.
CSS Gradient Generator
Create CSS gradients with color pickers, angle control, and live preview.
JSON Formatter
Pretty-print, validate, and minify JSON with syntax highlighting.
Password Generator
Generate strong, unique passwords with configurable length and complexity.
Diff Checker
Compare two text blocks side-by-side and see exactly what changed.