I am trying to make a lottery program for my school (we have an economic system).
My program generates numbers and saves it off into a text file. When I want to "pull" numbers out of my generator I want it to ensure that there is a winner.
Q: How do I have Python select a random line out of my text file and give my output as that number?
Off the top of my head: