Random Number
Secure random generator
crypto.getRandomValues. Integer generation uses rejection sampling to avoid modulo bias.What is Random Number?
Generate cryptographically-strong random integers or floats in any range, with optional uniqueness for integer sets. Uses crypto.getRandomValues + rejection sampling so there's no modulo bias even at small ranges. Useful for draws, lottery picks, random sampling, and anywhere Math.random() isn't secure enough.
How do I use Random Number?
- Pick Integer or Float, a min/max range, and how many values.
- Toggle "Unique values" for integer sets without repeats.
- Click Generate.
- Copy or download the list.
When should I use Random Number?
Random Number is for numeric randomness. For random strings or passwords, use Password Generator. For UUIDs specifically, use UUID Generator.
Is the randomness cryptographically secure?
Toggle "Cryptographically secure" to use crypto.getRandomValues() — suitable for lottery draws, token generation, or anything sensitive. Default is fast Math.random() for simulation use.
Can I generate a range of numbers with no duplicates?
Yes. Set "Unique" — the tool picks without replacement. Useful for drawing raffle winners or random subsets.
How many numbers can I generate?
Up to 10,000 per run. Results can be copied or downloaded as CSV.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.