input: Write a function to populate an array with random numbers from 1 to 100 based on the given array length. The function should return the populated array.
  assert populateArray(5) == [some_number, some_number, some_number, some_number, some_number]
  assert populateArray(3) == [some_number, some_number, some_number]
  assert populateArray(0) == []
output: import random
  
  def populateArray(length):
      return [random.randint(1, 100) for _ in range(length)]