Random number generator
What this random number generator does
Pick inclusive bounds and receive an integer drawn from the browser or server RNG available to this page—fine for classroom dice, arbitrary tie-breakers, or QA sampling IDs when you only need "messy" spread, not audit-grade fairness. Cryptographic giveaways, regulated games, and security tokens require CSPRNG APIs with reviewed protocols—do not rely on a generic web gadget without legal and engineering sign-off.
When to use it
Use it when prototyping loot tables, assigning temporary beta cohorts, or picking which log file to inspect first. For identifiers that must collide rarely across databases, prefer UUID v4 generator. For passwords, prefer Password generator with charset controls.
Worked example
Team retrospective needs two volunteers from twenty names; numbers 1–20 map cleanly—transparent bounds beat arguing who went last month.
Frequently asked questions
Is each roll independent?
Assuming the underlying RNG is sound for its class. Pseudo-random streams can repeat patterns if seeds reset poorly—know your deployment.
Floats versus integers?
This flow targets whole-number ranges; decimals usually mean different math libraries.
Can I prove fairness to users?
Public contests need commit-reveal schemes or third-party draws—not casual widgets.