A desktop application that simulates lottery draws and shows how often you would have won โ across hundreds of thousands of draws.
You enter your seven lucky numbers and choose how many draws to simulate. The app runs all of them and tells you exactly how many times you would have matched 5, 6, or 7 numbers.
This was a school assignment about simulation and randomness. The interesting challenge wasn't just generating random numbers โ it was doing it correctly and efficiently. Running a million lottery draws means the logic has to be both accurate and fast enough to finish in a reasonable time.
This project taught me to think carefully about performance โ naive approaches fall apart quickly at scale. I also had to handle a number of rules that aren't immediately obvious, like the fact that matching 7 numbers doesn't also count as a win for 5 or 6, and that the order of numbers in a row is irrelevant. Getting those details right is what separates a working program from a correct one.
Complete โ submitted as part of a school assignment.