input: Write a python function to generate a random password with a given minimum length using a list of characters.
  assert len(generate_password(['a', 'b', 'c', 'd', 'e', '1', '2', '3', '4', '5'], 8)) == 8
  assert len(generate_password(['x', 'y', 'z', '1', '2', '3', '4', '5'], 10)) == 10
  assert all(c in ['a', 'b', 'c', 'd', 'e', '1', '2', '3', '4', '5'] for c in generate_password(['a', 'b', 'c', 'd', 'e', '1', '2', '3', '4', '5'], 8))
output: import random
  
  def generate_password(char_list, min_length):
      return ''.join(random.choice(char_list) for _ in range(min_length))