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