Wednesday, September 6, 2023

Euro Millions Dinner Chooser Re combo

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")
  
  

No comments:

Post a Comment

Gammon => Ham Calculator V1.0

def ham_cooking_time (grams): """ Calculates the cooking time for a ham based on its weight. Args: g...