4.7 out of 5 — 444628 votes

Random Number Generator — pick a number in a range

Pick a random number between any two values.

Set the lowest and highest values you will accept, and this random number generator picks a whole number between them — every value equally likely, delivered in one click. From 1 to 100 or 1 to a million, the job is the same.

How to use Random Number Generator

Enter the minimum, enter the maximum, generate. Both ends are in play, so 1 to 10 really can return a 1 or a 10. Need several results? Generate again — each pick is independent, which also means repeats can happen and are perfectly normal. For a draw where repeats must not happen, cross each winner off your list before picking the next.

Pseudo, true, and what "random" really means

A computer cannot roll dice, so nearly every generator on a screen is pseudo-random: it starts from a seed and runs it through arithmetic built to make the output pass every practical test of unpredictability. True random hardware exists too — devices that sample physical noise — but for a raffle winner, a team order or a guessing game, a good pseudo-random pick is indistinguishable from the real thing. Programmers reach for the same idea in code; Python, for one, ships a random module for exactly these jobs.

What people actually generate

1 to 100 — the classic range for guessing games, quick picks and settling small disputes. Giveaway winners: number the entries, generate once across that range, ideally in front of witnesses. A four-digit code for a game or a gym locker: set 1000 to 9999 and take what comes.

Samples: picking ten of five hundred survey answers without letting a human thumb rest on the scale. Order and seating: anywhere "I'll just choose" reliably starts an argument.

The generator versus the human brain

People are famously bad at this job. Asked to produce a random string of digits, we avoid repeats, balance the totals and space everything out evenly — none of which true chance bothers to do. Real randomness produces streaks, clusters and coincidences constantly; that is often how invented figures get caught. When fairness matters, do not pick. Generate.

Ask a person for a random number and you get their favourite number. Ask a machine and you get a random number.

Questions and answers

Are the minimum and maximum included?
Yes — both bounds are possible results. A range of 1 to 100 has exactly one hundred equally likely outcomes.
Why did the same number come up twice?
Because every pick is independent of the last. A repeat is evidence of randomness, not a bug; for no-repeat draws, remove each result from the range as you go.
Is this good enough for a giveaway?
Yes. Number the entrants, generate once in that range, and announce it. For passwords and anything security-related, use purpose-built cryptographic tools instead.
All pages