input: Write a python function to generate a population of random solutions for a genetic algorithm.
  assert len(generate_population(10, 5)) == 10
  assert all(len(solution) == 5 for solution in generate_population(10, 5))
  assert isinstance(generate_population(5, 3)[0], list)
output: import random
  
  def generate_population(pop_size, solution_size):
      return [[random.randint(0, 1) for _ in range(solution_size)] for _ in range(pop_size)]