input: Write a function to generate a random password given a set of letters, numbers, and characters. The function should use the random module to choose any character randomly from a predefined set of characters and should return a password of length 8.
  
  def generate_password():
      import random
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, 8))
      return password
  
  assert generate_password() != generate_password()  # Ensure different passwords each time
  assert len(generate_password()) == 8
output: def generate_password():
      import random
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, 8))
      return password