Random Number Generator
Generate fair, unbiased random numbers in any range you choose — both endpoints included. Perfect for raffles, giveaways, games, sampling, and quick decisions.
Random Number Generator
Set your range, then roll
Feeling lucky?
Set a range on the left and hit Generate to roll your numbers.
Need to pick a raffle winner, roll a virtual die, sample a list, or just settle a debate? This random number generator produces fair, uniformly distributed numbers in any range you set — and every number in the range, including both the minimum and the maximum, has exactly the same chance of being picked.
How it's calculated
A random integer between min and max (inclusive on both ends) is produced like this:
result = min + floor(random() × (max − min + 1))
The "+ 1" is what makes the top of the range reachable — a detail many homemade generators get wrong, silently excluding the maximum value.
True random vs. pseudo-random. Computers are deterministic machines, so most "random" numbers are actually pseudo-random: generated by an algorithm that, given the same starting seed, would produce the same sequence every time. Good pseudo-random generators pass rigorous statistical tests and are indistinguishable from true randomness for everyday purposes. True random numbers, by contrast, come from physical processes — atmospheric noise, radioactive decay, or hardware entropy. Modern browsers expose a cryptographically secure generator (CSPRNG) seeded from operating-system entropy, which is what serious applications use when unpredictability matters.
What counts as a fair pick? Fairness means uniformity: in a 1–100 draw, every integer has exactly a 1-in-100 chance. This generator does not weight, repeat-avoid, or bias results unless you ask it to. Over a small number of draws, streaks and repeats are normal and expected — true randomness is lumpier than most people intuit. The "law of averages" only smooths things out over thousands of draws.
Assumptions and limitations: results are independent, so previous draws never influence the next one (no "due" numbers). Duplicates can occur across multiple draws unless you specifically generate a non-repeating set. And while the output is more than random enough for raffles, classroom picks, and games, you should not use any general-purpose generator to create passwords or cryptographic keys — use a dedicated password manager for that.
Frequently asked questions
Are the numbers truly random?
They are generated by your browser's random source, which for practical purposes is indistinguishable from true randomness. Pseudo-random generators are algorithmic, while "true" randomness comes from physical entropy — but for raffles, games, sampling, and decisions, a quality browser generator is statistically fair and unbiased.
Are the minimum and maximum values included in the results?
Yes — the range is inclusive on both ends. If you set 1 to 10, both 1 and 10 can appear, each with exactly a 1-in-10 chance. The formula adds 1 to the range width specifically so the maximum is reachable.
Can the same number come up twice in a row?
Yes, and that is expected. Each draw is independent, so a repeat is exactly as likely as any other specific outcome. Real randomness produces streaks and duplicates more often than intuition suggests. If you need unique results (like drawing several raffle winners), generate a non-repeating set instead of separate single draws.
Is this fair enough to pick a giveaway or raffle winner?
Yes. Every entry number in your range has an identical probability of being selected, with no weighting or bias. For transparency, decide the range and number of winners before you draw, and consider screen-recording the draw so participants can verify it.
Can I use it to generate passwords or predict lottery numbers?
Neither, for different reasons. Passwords need a cryptographically secure source and proper character handling — use a password manager. Lotteries cannot be predicted at all: each official draw is independent, so no generator, pattern, or "hot number" system improves your odds.

