Generate random numbers in any range, with optional uniqueness.
This tool generates random numbers within any range you specify. Use it for picking lottery numbers, selecting contest winners, choosing a random student, running simulations, or any time you need an unbiased random selection.
This generator draws from your browser's cryptographically secure random source (crypto.getRandomValues), with rejection sampling so numbers are uniformly distributed across your chosen range; only if that API is unavailable (or the range exceeds 2^32 values) does it fall back to JavaScript's Math.random. The "unique numbers" option ensures no repeats — useful for raffles and sampling without replacement.
Most software (including this tool) uses pseudo-random numbers, generated by mathematical algorithms. These are sufficient for games, simulations, and everyday use, but they are algorithmic rather than physically random. For certified lottery draws and official gambling, "true" random numbers from physical sources (radioactive decay, atmospheric noise) are required — see Random.org for that.
More tools you might find useful
Test regex with live highlighted matches and a syntax cheat sheet.
Decode 4-6 band resistor color codes, or turn ohms back into colors.
Build a correct robots.txt with presets and live preview.
Convert titles into clean, SEO-friendly URL slugs instantly.