Why "random" needs a defined range to mean anything
A number cannot be random in the abstract β it is only random within some defined space of possibilities. Setting the minimum and maximum is what actually defines that space, and getting the range wrong (like accidentally including or excluding an endpoint) is the most common way a generator produces unexpected results.
Pseudorandom vs. genuinely unpredictable
Most software random number generators are technically "pseudorandom" β they use a mathematical algorithm that produces output statistically indistinguishable from true randomness, but is technically deterministic given its starting seed. For everyday uses like picking a number for a game or a quick decision, this distinction rarely matters; it becomes important mainly in security-sensitive contexts like generating cryptographic keys.
Frequently Asked Questions
Can I generate the same random number twice in separate generations?
Yes, if duplicates are allowed or you are running separate, independent generations β each generation event has no memory of previous ones, so getting the same number again is entirely possible and does not indicate a bug.
Is a random number generator fair enough to use for a real drawing or contest?
A generator using a proper random source and a correctly implemented uniform distribution is fair in the statistical sense that every eligible number has an equal chance. For anything with real stakes, it is still worth checking that duplicate handling and range settings match the actual rules of your drawing.