Calculator · Windows 10 and 11

Random number generator

Type the lowest and highest number and get a random one at once, shown big. Ask for more and they come as a list, with no repeats unless you allow them, sorted if you like, and ready to copy. Whole numbers or decimals, small ranges or huge ones, all drawn from your computer's cryptographic random source so every number has the same chance.

Updated

How to pick a random number

  1. 1

    Open the Random number generator

    In Octoolo's Calculator, pick Random number generator in the Chance group. It opens with a number from 1 to 100.

  2. 2

    Set the range

    Type the lowest number in From and the highest in To. Both can be drawn. Or press a quick range: 1 to 10, 1 to 100, 1 to 1,000, 6 from 1 to 49 or 5 from 1 to 69.

  3. 3

    Choose how many and how

    Set How many, switch No repeats and Sort from low to high on or off, and pick Whole numbers or Decimals with the number of Decimal places.

  4. 4

    Draw again and copy

    Press Generate again for a new draw. One number has its own Copy; a list has Copy with commas and Copy as lines.

Fair numbers: why the method matters

Computers make random numbers as long strings of bits, and those have to be turned into your range. The easy way, taking the remainder after dividing, is subtly unfair. Take a random byte (0 to 255) and use its remainder after dividing by 100 to pick 1 to 100: 256 is two hundreds and 56 more, so the numbers 1 to 56 come up three ways each and 57 to 100 only two. The low numbers would be 50% more likely.

Octoolo avoids this: it draws from your computer's cryptographic random source, throws away the few values that would cause the imbalance and draws again. Every number in the range has exactly the same chance, which the result line says: “Each of the 100 possible numbers had a 1 in 100 chance”. Ranges can hold up to 9,007,199,254,740,992 values (253), from negative numbers to very large ones.

No repeats, sorting, and lottery numbers

With No repeats on, the numbers are drawn the way balls leave a lottery machine: each one can come out only once. Asking for more numbers than the range holds, such as 60 from 1 to 49, gives a message instead of a list. With it off, each number is drawn independently and the same one can appear twice, like rolling a die again.

Sort from low to high only changes the order shown; the numbers drawn are the same. The quick ranges include two lottery shapes:

  • 6 from 1 to 49, used by many national lotteries: one of 13,983,816 possible sets.
  • 5 from 1 to 69, Powerball's white balls. Draw the Powerball itself separately with From 1 To 26. The odds of matching all six are 1 in 292,201,338.

Random numbers do not make a lottery ticket more likely to win; every set has the same chance. They do avoid the birthdays and patterns many people pick, so a win would be shared less often.

Decimals, and other uses

With Decimals, the numbers are drawn on a grid of the places you choose: with 2 places from 0 to 1, each of 0.00, 0.01 and so on up to 1.00 is equally likely. Up to 10 decimal places are allowed, as long as the range does not get too large to count.

  • Picking a winner: number the entries and draw one. For names, the wheel of names shows the draw.
  • Sampling: draw 50 rows from 1 to 2,000 without repeats, sorted, and copy them as lines into a spreadsheet.
  • Teaching: draw 1,000 numbers from 1 to 6 with repeats to see how close each count comes to a sixth.

Every new draw is made the moment you change a setting, and Earlier under a single number keeps the last few, so a classroom can see what came before.

Questions, answered

Are both ends of the range included?

Yes. From 1 to 10 can give 1 and 10.

How do I get numbers without repeats?

Switch on No repeats. Each number can then be drawn only once, like a lottery.

How many numbers can I generate?

Up to 10,000 in one draw. The list shows the first 2,000; Copy takes them all.

Can it make random decimals?

Yes. Choose Decimals and set 1 to 10 decimal places.

Is it truly random?

It uses the computer's cryptographic random source, the kind used for encryption keys, and draws in a way that keeps every number equally likely.

Does it need the internet?

No. Everything happens on your PC.

Random number generator, and 16 more apps.

Download for Windows

7 days free, then from $3.99 a month for all 17 apps. Windows 10 and 11.