Random Number Generator — Fair Draws, Any Range
Pick a number between anything and anything — once or many times, with or without repeats.
How to use this tool
- Set your range (1–100, 1–6 for dice, 1–49 for lottery style).
- Choose how many numbers and whether repeats are allowed.
- Press Draw — each press is a fresh, independent draw.
Example
The formula
What the result means
True fairness in draws comes from uniform randomness — this generator rejects out-of-range values before mapping (avoiding modulo bias) and uses the browser's cryptographic source, the same one that guards HTTPS. That's a stronger guarantee than dice, and far stronger than 'the boss picks'.
Frequently asked questions
Can I use it for a raffle or giveaway?
Yes — it's a fair draw: every number has identical probability. For public trust, screenshot the result.
Why no repeats by default?
Most draws (winners, orderings) want unique picks. Uncheck it for independent events like dice rolls.
Is the randomness really cryptographic?
Yes — crypto.getRandomValues, seeded by your operating system's secure entropy pool. Math.random is only used as a fallback on ancient browsers.
Are my draws recorded?
No — nothing is stored or sent; refresh and the history is gone.
More tools from Safe Harbor
Explore the island world
- Safe Harbor — the island where this tool lives.
- The Main Island — drive the boat, explore the whole world.
- The 90s Kids Island — where most of us started.
Comments
Post a Comment