Lottery Statistics in Commodore BASIC

- by

In this episode I’m adding statistics support to my previous lottery generator on the Commodore 64.

I’ll add an array that is updated if my supplied numbers have been matched, and how many times over how many draws this has happened. I’ll also add an option to pause the programme and display the statistics before random draws can continue.

When this app is run continuously it will collect statistical data on how many lottery draws are necessary to match all supplied numbers.

PS: By the time the video had uploaded, my emulator had drawn over one million sets, and none of them have matched my numbers 🙁



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.