Calculators and tools

Random Number Generator

Generate a whole number from any range, one or many at a time. Both ends of the range are included.

Press Generate

?

Good to know

What can I use this random number generator for?

The generator suits all kinds of everyday needs: games, raffles and quizzes. To pick who of ten people goes first, enter 1–10 and press Generate.

Draw several numbers at once and tick “No repeats”, and no number comes up twice. That way you can pick three winners out of a hundred entries, or a lottery line of seven different numbers between 1 and 40.

How does it work?

The generator draws a whole number between the two numbers you give, both included. Enter 1 and 3, and the possible results are 1, 2 and 3. Your earlier draws stay in the number log below the generator, so you can check what came up before.

Everything happens in your browser. The generator doesn’t save or send anything you type into it.

Random or pseudorandom?

The numbers come from your browser’s cryptographic random number generator (crypto.getRandomValues), the same one used to create encryption keys. They are spread evenly between the smallest and the largest number, so every number is equally likely.

Numbers made by a computer are technically pseudorandom, but for raffles, games and decisions they are as random as you need. If there’s serious prize money involved, use a supervised draw.