0 Members and 3 Guests are viewing this topic.
# imports random functionimport random# labelling for lotto number outputprint ("Your EuroMillions numbers are - ")# Picks 5 random numbers between 1 and 50# range goes to 51 so that 50 is inclusive, 51 is not inclusive# .sample does not duplicate numbers picked# Outputs these 5 results in a listprint(random.sample(range(1, 51),5))print ("Your Lucky Stars are - ")print(random.sample(range(1, 13),2))# interactivity - prints optionsprint ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")
python eunext.py
# imports random functionimport random# labelling for lotto number outputprint ("Your UK lotto numbers are - ")# Picks 6 random numbers between 1 and 59# range goes to 60 so that 59 is inclusive, 60 is not inclusive# .sample does not duplicate numbers picked# Outputs these 6 results in a listprint(random.sample(range(1, 60),6))# interactivity - prints optionsprint ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")
python next.py