input: Write a function to generate a list of random numbers in Python.
  
  def generate_randoms(n):
    # generate a list of n random numbers
    rands = []
    for _ in range(n):
      rands.append(random.randint(1,100))
    return rands
  
  generate_randoms(10)
output: import random
  
  def generate_randoms(n):
    rands = []
    for _ in range(n):
      rands.append(random.randint(1, 100))
    return rands