input: Write a function to generate an array of random numbers in Python using the numpy library. The function should accept a size parameter and return an array of random integers within a specified range.
  assert generate_random_array(10)==<random_array_of_size_10>
  assert generate_random_array(5)==<random_array_of_size_5>
  assert generate_random_array(0)==[]
output: import numpy as np
  
  def generate_random_array(size):
      if size == 0:
          return []
      return np.random.randint(0, 100, size).tolist()