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