Random Name Picker
A random name picker selects one or more names from a list using a random number generator. Used for classroom draws, raffle winners, team assignments, and decision making. A fair random picker gives each entry an equal probability of selection.
Tip: For classroom fairness: use removal without replacement so every student gets picked equally before anyone is picked twice. Pure random with replacement means some students may never be picked.
- 1Generate a random index between 0 and (list length - 1)
- 2Return the name at that index
- 3For multiple picks without replacement: remove selected names from pool
- 4Cryptographically secure random: use crypto.getRandomValues() not Math.random()
| Method | Fairness | Best use |
|---|---|---|
| Computer RNG (Math.random) | Pseudorandom, very fair | General use |
| Physical dice/cards | Truly random | No computer needed |
| Drawing from a hat | Fair if mixed well | Low-tech, visible |
| Round-robin | Equal distribution | Recurring selections |
| Weighted random | Intentionally biased | Giving more chances to some |
Fun Fact
True randomness is surprisingly hard to achieve computationally. Most random number generators are pseudorandom — deterministic sequences that merely appear random. For security-critical applications (cryptography, gambling), hardware random number generators that use physical processes (thermal noise, radioactive decay) are required.
References