input: Write a function to generate a list of n random integers between 1 and 100.
  assert len(rand_list(5)) == 5
  assert all(1 <= num <= 100 for num in rand_list(10))
  assert isinstance(rand_list(0), list)
output: import random
  
  def rand_list(n):
      return [random.randint(1, 100) for _ in range(n)]