Random Number Generator

Choose a mode: a number from a range, a die, a coin, or a draw from your own list.

Uses the browser's cryptographic random source, not a predictable one.

How to use

For a number, set the From and To bounds and how many you need. The no-repeats option guarantees a value cannot come up twice — exactly what you want for prize draws or splitting people into teams. For a draw, paste your list with one option per line.

The generator draws from the browser's cryptographic random source rather than an ordinary pseudo-random function. That matters whenever someone benefits from the outcome: a predictable generator can be worked out, this one cannot. It also removes the range bias that makes lower numbers slightly more likely in naive implementations.

FAQ

How fair is this generator?

It uses crypto.getRandomValues, the browser's cryptographic random source. It also discards values at the edge of the range and draws again, so every number is equally likely. Naive generators that use a simple remainder make lower numbers come up slightly more often.

Can I use it for a prize draw?

Yes. Paste the entrants in draw mode, set how many winners you need, and keep no-repeats on so nobody wins twice.

How many numbers can I generate at once?

Up to a thousand. With no-repeats on, you cannot ask for more numbers than the range holds.

Is the result stored anywhere?

No. Everything is computed in your browser; nothing is sent or recorded.

More tools