Random Number Generator
Pick one or more random whole numbers between any two values, with or without repeats.
A random number generator picks whole numbers from a range you set, with every number in that range equally likely. Set the lowest and highest values, choose how many numbers you want, and press Generate. The default draws one number from 1 to 100, where each number has a 1% chance. Tick no repeats to draw raffle tickets or a lottery-style set without duplicates.
This generator is for everyday use such as games, classroom activities, sampling and informal draws. It is not a certified random number generator for regulated lotteries, gambling, audits or security keys, and results are provided as is. If a prize or a decision rides on a draw, follow whatever official rules apply to it.
Your random number
Press Generate to draw.
- Whole numbers in the range
- 100
- Chance of any one number on a single draw
- 1%
Embed this calculator on your site →
About the Random Number Generator
The numbers come from your browser's cryptographic random source, the same one used to create encryption keys, not from a predictable formula seeded by the clock. Each draw is a 32-bit random value that the tool maps onto your range. A naive mapping that just takes the remainder after dividing by the size of the range slightly favours the smaller numbers whenever the range does not divide evenly into the four billion or so possible draws. This generator discards the few draws that would cause that tilt and draws again, so every number from your lowest to your highest value has exactly the same chance. Both ends of the range are included: 1 to 6 can land on 1 or 6, like a die. Negative numbers work too. With no repeats ticked, each number can appear once, which is how you would pull names from a hat or pick six lottery numbers from 49. Nothing you draw is sent anywhere; the numbers are made on your device and vanish when you leave the page.
Frequently asked questions
Is this random number generator truly random?+
It uses the browser's cryptographically secure generator, which draws on unpredictable events from your device's operating system. For choosing winners, splitting teams, sampling or games, that is as random as you need. It is not a hardware dice roller, and no software claim of perfect randomness should be taken at face value.
How do I pick a number between 1 and 10?+
Set the lowest number to 1, the highest to 10 and press Generate. Each of the ten numbers has a 10% chance on every draw, and earlier results have no effect on the next one.
Can I generate numbers without repeats?+
Yes. Tick no repeats and each number can appear at most once in a draw. You cannot ask for more numbers than the range holds, so 1 to 5 with no repeats allows five numbers at most. Sort the result if you want it in order, such as for lottery-style picks.
Can I use this to pick a raffle or giveaway winner?+
Yes. Number your entries from 1 up to the total, then draw one number, or several with no repeats for multiple prizes. For a public draw, record the screen when you press Generate so entrants can see it happen.
Embed this calculator
Free to use on your own site. Paste this snippet where you want the random number generator to appear — it resizes itself automatically.
<iframe
src="https://manytools.co/embed/random-number-generator"
title="Random Number Generator by ManyTools"
data-manytools="random-number-generator"
width="100%"
height="640"
loading="lazy"
style="border:0;width:100%;max-width:720px"></iframe>
<script>
(function () {
window.addEventListener("message", function (e) {
if (e.origin !== "https://manytools.co") return;
var d = e.data || {};
if (d.type !== "manytools:embed:height" || d.slug !== "random-number-generator") return;
var f = document.querySelector('iframe[data-manytools="random-number-generator"]');
if (f && d.height) f.style.height = d.height + "px";
});
})();
</script><a href="https://manytools.co/math/random-number-generator">Random Number Generator by ManyTools</a>