Pick random numbers in any range, or flip a coin or roll a die. Tick No repeats when every number has to be different.
Your data stays in your browser
This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data
Leave the range at 1 to 100 and press Generate, or tap the "1 to 100" shortcut. Every number in the range has exactly the same chance of coming up. Change the range for anything else: 1 to 6 for a die, 1 to 30 to pick a student by roll number, or 1 to however many people entered your giveaway.
It uses your browser's cryptographic random generator (crypto.getRandomValues), the same source browsers use for encryption keys. That's far less predictable than the basic Math.random() many simple generators use. We also correct for "modulo bias", a small skew that makes some numbers slightly more likely in sloppier generators. Numbers are made in your browser, so we never see them.
Picking several winners, drawing raffle tickets, or choosing lottery-style numbers where each number can only come up once. With it off, the same number can appear more than once, the way it would if you rolled a die several times.
Yes. Number your entries, set the range to match, and pick. For anything with legal rules, like an official prize draw, follow whatever process those rules require. Need a random password rather than a number? Use the Password Generator. Need random IDs for software? Try the UUID Generator. Doing the sums afterwards? There's the Online Calculator.