input: Write a function to create a Python script to populate an array with random numbers from 1 to 100 given the length of the array. Return the populated array.
  
  assert populateArray(5) == [23, 45, 67, 89, 9]
  assert populateArray(3) == [1, 50, 100]
  assert populateArray(0) == []
output: import random
  
  def populateArray(length):
      return [random.randint(1, 100) for _ in range(length)]