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 of the given size. If the size is 0, return an empty array.
  
  import numpy as np
  
  def generate_random_array(size):
      if size == 0:
          return []
      random_array = np.random.randint(0, 100, size)
      return random_array
  
  assert (generate_random_array(5) is not None) == True
  assert (generate_random_array(0) == []) == True
  assert (len(generate_random_array(10)) == 10) == True
  assert (all(isinstance(num, int) for num in generate_random_array(7))) == True
output: def generate_random_array(size):
      if size == 0:
          return []
      random_array = np.random.randint(0, 100, size)
      return random_array