input: Write a function to generate a list of random integers.
  assert len(generate_list(5)) == 5
  assert len(generate_list(10)) == 10
  assert all(0 <= num <= 100 for num in generate_list(20))
output: import random
  
  def generate_list(n):
      return [random.randint(0, 100) for _ in range(n)]