Random numbers show up everywhere: raffles, classroom cold-calls, sampling for surveys, dice-rolling for games, lottery picks, A/B test assignment. The mechanics are simple, but the details — unique vs. repeatable, weighted vs. uniform, seeded vs. truly random — make a real difference to whether your result is actually fair.
Uniform vs. weighted random numbers
A uniform random number gives every number in the range an equal chance of being picked. This is what most people want, and what WheelsHub's Random Number Generator does by default. A weighted random number gives some numbers a higher chance — useful when Alex bought 5 raffle tickets and Jordan bought 1, and you want Alex to have 5× the odds.
For weighted raffles, the trick is to assign each ticket its own number and pick uniformly from the full range. If Alex has ticket numbers 12–16 and Jordan has 17, a uniform pick from 12 to 17 gives Alex 5/6 odds and Jordan 1/6 — exactly the weighting you want, no special math required.
Unique vs. repeatable picks
If you're drawing multiple winners from the same pool, you usually want unique numbers — once a number wins, it's out. (Imagine a raffle where one ticket won both first and second prize.) If you're rolling dice or generating test data, you want repeatable picks — the same number can come up twice in a row. WheelsHub's Random Number Generator has a 'unique' toggle for exactly this.
How to pick a random number
Open WheelsHub's Random Number Generator.
Set min and max to your range — e.g. 1 to 500 for a 500-ticket raffle.
Set 'how many' to the number of results you want — e.g. 3 for a 3-prize raffle.
Toggle 'unique' on if you want each number to win at most once.
Click generate. The numbers are displayed instantly and you can copy them to your records.
Common use cases
- Raffle draws — pick winning ticket numbers from the range sold
- Classroom cold-call — pick a number 1 to N where N is the class size, then call on that student
- Sampling — pick K random numbers from a list of N for a survey or audit
- Lottery quick picks — pick 5–6 numbers from a defined range, no repeats
- Game events — pick a random number to determine encounter difficulty, loot rarity, or NPC behavior
- A/B testing — assign each user to variant A or B based on a random pick
Why 'random' is harder than it looks
Computers can't generate truly random numbers — they generate pseudo-random numbers using mathematical formulas that look random but are actually deterministic given a starting 'seed'. For most everyday uses (raffles, classrooms, casual games) pseudo-randomness is more than random enough. For cryptography, gambling, or anything with serious money on the line, you need cryptographically-secure randomness, which uses hardware noise or other unpredictable physical sources.
WheelsHub's Random Number Generator uses the browser's cryptographically-secure random source (window.crypto.getRandomValues) where available. This is the same source used for secure password generation, so it's well beyond what's needed for raffles and games.
Verifying a random draw
For raffles and giveaways, the draw needs to be verifiable. Record the screen during the generation. Use a tool that displays the result visually, not one that just prints a number. If anyone questions the result later, you can show the recording — the random draw on camera is the proof.
Once you've got a reliable random number generator you trust, you'll find yourself reaching for it constantly. Raffles, classroom picks, sampling, game events — all the small moments where you used to just 'pick a number' become fair and verifiable.