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