As a kid in the 80s I wrote a program in Basic to randomly pick lottery numbers and print them as fast as it could and stop when it matched a predefined number.
Watching the program spin for hours disabused me of any notion that the lottery could be won. It was a good way to get a feel for the ridiculous odds involved and to this day I've never felt tempted to play the lottery.