Lottery Statistics in Commodore BASIC

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 🙁

Watch the full course in one convenient playlist:
Catch this episode on my Commodore Podcast:

Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.

Add your voice!