Random Number Generator
Set the range, click Generate, and you get a random integer. Use it for raffles, exercises, or just to break a tie.
—
How it works
We compute Math.floor(Math.random() × (max − min + 1)) + min. Both endpoints are included, and every integer in the range has the same probability.
Frequently asked
- Is it cryptographically secure?
- No. This uses Math.random(), which is fast and uniformly distributed but not safe for cryptography or gambling. For real money or secrets, use crypto.getRandomValues.
- Are both endpoints inclusive?
- Yes. If you set 1 to 100, both 1 and 100 can come up.
- Can it pick decimals?
- Currently integers only. We may add a decimal mode later.
Other decision tools
Popular generators
Popular calculators
Share
Popular converters
- Centimeters to incheslength
- Kilograms to poundsmass
- Millimeters to incheslength
- Pounds to kilogramsmass
- Celsius to fahrenheittemperature
- Kilometers to mileslength
- Inches to centimeterslength
- Meters to feetlength
- Fahrenheit to celsiustemperature
- Inches to feetlength
- Inches to millimeterslength
- Liters to US gallonsvolume