input: Write a Python function to generate a list of n random integers between 0 and 1000.
  assert len(generate_random_list(5)) == 5
  assert all(0 <= x <= 1000 for x in generate_random_list(10))
  assert isinstance(generate_random_list(3), list)
output: import random
  
  def generate_random_list(n):
      return [random.randint(0, 1000) for _ in range(n)]