input: Write a function to generate an array of random numbers in Python. The function should accept one parameter 'size' which defines the length of the array. The function should return the generated array.
  assert generate_random_array(10)==[any array of 10 elements]
  assert generate_random_array(5)==[any array of 5 elements]
  assert generate_random_array(0)==[]
  assert generate_random_array(3)==[any array of 3 elements]
  assert generate_random_array(7)==[any array of 7 elements]
output: import random
  
  def generate_random_array(size):
      return [random.random() for _ in range(size)]