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 within the range [0, 99]. If the input `size` is less than or equal to 0, the function should return an empty array.
  assert random_array(10) != random_array(10)
  assert len(random_array(10)) == 10
  assert all(0 <= x < 100 for x in random_array(10))
  assert len(random_array(0)) == 0
  assert len(random_array(-5)) == 0
output: import random
  
  def random_array(size):
      if size <= 0:
          return []
      return [random.randint(0, 99) for _ in range(size)]