input: Write a function to generate an array of random numbers in Python. The function should take an integer size as input and return an array of random integers between 0 and 100. If the size is less than or equal to 0, the function should return an empty list.
  import numpy as np
  
  def generate_random_array(size: int) -> list:
      if size <= 0:
          return []
      return np.random.randint(0, 100, size).tolist()
  
  assert generate_random_array(10) is not None
  assert generate_random_array(0) == []
  assert generate_random_array(-5) == []
output: def generate_random_array(size: int) -> list:
      if size <= 0:
          return []
      return np.random.randint(0, 100, size).tolist()