import random def euro_millions(): """Generates a random EuroMillions ticket with no duplicate numbers.""" # Set the range of numbers for the main draw main_draw_numbers = range(1, 51) # Select 5 random numbers from the main draw without duplicates selected_numbers = [] for _ in range(5): number = random.choice(main_draw_numbers) if number not in selected_numbers: selected_numbers.append(number) # Set the range of numbers for the Lucky Star draw lucky_star_numbers = range(1, 13) # Select 2 random numbers from the Lucky Star draw without duplicates lucky_star_numbers = random.sample(lucky_star_numbers, 2) return selected_numbers, lucky_star_numbers #select A Random Dinner, Lucky numbers when you get a BBQ! def choice_dinner(): choices = ["Indian","Italian","Chinese","Mexican","Thai","French","Barbeque","Roast","Something Else"] return random.choice(choices) if __name__ == "__main__": # Generate a random EuroMillions ticket selected_numbers, lucky_star_numbers = euro_millions() # Print the ticket print("Your EuroMillions numbers are:", selected_numbers) print("Your Lucky Star numbers are:", lucky_star_numbers) print("your will have a",choice_dinner(),"Dinner")
Wednesday, September 6, 2023
Euro Millions Dinner Chooser Re combo
Subscribe to:
Post Comments (Atom)
Gammon => Ham Calculator V1.0
def ham_cooking_time (grams): """ Calculates the cooking time for a ham based on its weight. Args: g...
-
def ham_cooking_time (grams): """ Calculates the cooking time for a ham based on its weight. Args: g...
-
import random class EuroMillions : """Generates a random EuroMillions ticket with no duplicate numbers.""...
-
import random import string # To be extended one bit at a time lottery_numbers_picked = 1033458226 lottery = [ "1" , ...
No comments:
Post a Comment