An easily fixable bug found in the cash 4 life script

Published:

Updated:

The distribution percents were not adding up. A number drawn 10 times should have had a percentage matching the expectancy, but instead it was slightly lower.

The issue, using 600 draws in the model, which would have worked if the expectancy was 1/60, but I am using an expectancy of 1/56... easiest fix ever... I just have to change the number of draws in the distribution model from 600 to 560!

Now if a number is drawn exactly 10 times, the percentage matches the expectancy. I eventually catch my own oversights.

While waiting for a pick 3 hit, may as well begin experimenting with a GUI for the output...

Entry #434

Comments

This Blog entry currently has no comments.

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register