input: Write a function to generate an array of random integers in Python. The function should take an integer parameter `size` and return an array of random integers of the specified size, with each integer ranging from 0 to 100.
  
  def generate_random_array(size):
      return np.random.randint(0, 100, size)
  
  assert len(generate_random_array(10)) == 10
  assert all(isinstance(x, int) for x in generate_random_array(10))
  assert min(generate_random_array(10)) >= 0
  assert max(generate_random_array(10)) <= 100
output: def generate_random_array(size):
      return [random.randint(0, 100) for _ in range(size)]