Random Number Generator
Random Number Generator generates a random integer within the lower and upper bound you set (both inclusive), a quick tool for raffles, games or sampling.
How it works
- 1Enter the min and max values.
- 2Press 'Generate', the result is shown instantly in large type.
- 3The last 10 results are listed as history.
- 4Min can't be greater than max, the tool warns you if it is.
Frequently asked questions
Are the bounds included in the result?−+
Yes, both min and max can be drawn (an inclusive range); e.g. a 1-6 range can produce both 1 and 6.
Is this cryptographically secure?−+
No, it uses the browser's standard `Math.random()`; it's not suitable for uses requiring cryptographic security (like lottery tickets or security keys), it's meant for games and casual use.
Can I use a negative number range?−+
Yes, negative values are accepted for both min and max (e.g. -10 to 10).
Can the same number appear twice in a row?−+
Yes, each generation is independent (previous results aren't excluded), so the same number can repeat, that's statistically normal.
Embed on your site
Size
480 × 360px<iframe src="https://toolsqube.com/en/random/random-number-generator/embed" width="480" height="360" style="border:0;border-radius:14px" title="Random Number Generator · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Fair Randomness Guide →