input: Write a python function to generate a list of random integers of specified length within a given range.
  assert len(generate_random_list(5, 1, 10)) == 5
  assert all(1 <= num <= 10 for num in generate_random_list(5, 1, 10))
  assert len(generate_random_list(7, 50, 100)) == 7
output: import random
  
  def generate_random_list(length, start, end):
      return [random.randint(start, end) for _ in range(length)]