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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…