Use this free random number generator to pick a number between any two integers (inclusive). Choose quick ranges like 1–10, 1–100 or 1–1000, or set your own. Results use secure randomness and work instantly in your browser
This generator produces a uniformly distributed integer between Min and Max, inclusive. When supported, it uses secure browser entropy (crypto) with rejection sampling to avoid modulo bias. If crypto isn’t available, it falls back to standard randomness.
Q: Is the range inclusive?
A: Yes. Results include both the Min and the Max you set.
Q: How random is it?
A: When supported, it uses secure browser entropy (window.crypto.getRandomValues) with rejection sampling; otherwise it falls back to Math.random().
Q: Can I use negative numbers?
A: Yes. Min and Max can be any integers, including negatives.
Q: What if Min is greater than Max?
A: The tool automatically swaps them so the range is valid.
Q: Does it generate decimals?
A: No. For decimals, scale your range (e.g., ×10), generate, then divide back.
Q: Can I get multiple numbers without repeats?
A: This version outputs one number at a time and may repeat; use a “without replacement” picker for unique draws.
Q: Can I seed the generator?
A: No. It isn’t seedable for privacy and simplicity.
Q: Will it work offline?
A: Yes, after the page loads—it runs entirely in your browser.
Q: Does it store my inputs or results?
A: No. Everything is client-side; nothing is sent to a server.
Q: What are the quick presets for?
A: They instantly set popular ranges: 1–10, 1–100, and 1–1000.
Was this calculator helpful?
Rate your experience to help us improve.
Thanks for rating! See the average and total ratings above.
Not rated yet—be the first to rate this calculator.