input: Write a python function to generate a list of random numbers within a given range.
  assert len(generate_random_nums(5, 1, 10)) == 5
  assert all(1 <= x <= 10 for x in generate_random_nums(5, 1, 10))
  assert len(generate_random_nums(0, 1, 10)) == 0
output: import random
  
  def generate_random_nums(n, start, end):
      return [random.randint(start, end) for _ in range(n)]