input: Write a function to generate an array of random numbers in Python given the specified size. The function should return the generated array.
  assert generate_random_array(10)==print(generate_random_array(10))
  assert generate_random_array(5)==print(generate_random_array(5))
  assert generate_random_array(0)==print(generate_random_array(0))
output: import random
  
  def generate_random_array(size):
      return [random.random() for _ in range(size)]