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