Random Number Generator β€” Crypto Strong

Generate one or many random integers in any range. Uses crypto.getRandomValues β€” cryptographically secure. Optional no-repeat mode for raffles and draws.

Browser crypto.getRandomValues used.

When you need a random number generator

Random numbers underpin everything from password generation to lottery draws, game design to scientific simulations. This tool gives you cryptographically secure random integers in any range β€” suitable for raffles, prize draws, randomised testing, sampling, or just picking a number between 1 and 10.

Math.random vs. crypto.getRandomValues

JavaScript's Math.random() is a pseudo-random generator suitable for non-security uses but has detectable patterns that make it inappropriate for anything where randomness matters cryptographically. This tool uses window.crypto.getRandomValues() instead β€” the same source used by password generators, UUID generators and cryptographic libraries.

No-repeat mode

For raffles, lottery draws, or any case where you need unique winners, tick "No repeats". The tool generates numbers without replacement β€” once drawn, a number isn't drawn again. The count can't exceed the range size in this mode (you can't draw 100 unique numbers from 1 to 50).

Common uses

Tips

FAQs

Is the randomness fair?

Yes β€” uses crypto.getRandomValues with proper modular debiasing to avoid range bias.

Is anything uploaded?

No.

Can I get numbers above 1 million?

Yes β€” up to 2^53 (the max safe JavaScript integer).

Related