Wizard Toolbox Tool map

Random Number Generator

Pick a range and how many. Every number in it is exactly as likely as every other.

–

How it works

Set From and To, choose how many numbers you want, and press Generate. Both ends count: 1 to 6 can give 1 and can give 6, like a die.

No repeats

With No repeats on, each number comes out once at most, like drawing raffle tickets from a hat: ask for 6 numbers from 1 to 49 and you get 6 different ones. Turn on Sorted to read them smallest first.

Fair by design

Every result comes from your browser's cryptographic random source (crypto.getRandomValues), the one used for encryption keys, not the predictable Math.random, and without the slight bias that simple methods have.

Questions

Can it pick lottery numbers?

Yes. Set the range your lottery uses, for example 1 to 59, ask for 6, and leave No repeats on. Every combination is as likely as any other, which is also why no tool can make a win more likely.

How big can the range be?

Up to about 4.5 quadrillion either side of zero, and up to 1,000 numbers at once.

Is anything saved?

No. The numbers stay in this page and are gone when you close it.

Worked out in this page, on your device · nothing is sent anywhere