Illinois Pick 3

Copying Pick 3

Illinois Pick 3 contains the following programs:

Lottery Program Description
Pick 3 combo.c Subroutine to Calculate Combinations
permute.c Subroutine to Calculate Permutations
getp3.c Subroutine to Calculate Probability
p3prob.c Prints Probability
pick3.c Illinois Pick 3 (your ticket)

By reading the source code in getp3.c you can learn how to calculate the probability for winning a prize.

There are no parameters for the p3prob program. Just run it directly from the console.

The pick3 program allows you to play Illinois Pick 3 for 100 years to see how often you win each prize. The help parameter is -h.

      pick3 -h

By playing pick3, you can see how many times you have to play just to break even. Since the lottery pays out no more than half of its income, you will almost always lose money in the long run by playing pick3.

The prizes depend on the playing options and the odds of winning. This program assumes that you always pay $1.00 per game for the larger prize.

If you play with the straight/box option, you will see two winnings.

The net earnings column shows half as much gain or loss, because half the cost is allocated to exact match and the other half is allocated to match in any order. If you combine the two net earnings, the total should equal close to $33,000.00.

The pick3 program runs 13 times per week for 100 years. That gives you 67830 chances to win with your favorite numbers.

It is easier to describe probabilities in terms of one urn. Three balls are drawn from one urn with replacement. However, in practice, the lottery draws 1 ball from each of three urns. This gives the same probability as drawing with replacement.