input: Write a python function to generate a random array of a given size.
  assert len(generate_random_array(5)) == 5
  assert len(generate_random_array(10)) == 10
  assert len(generate_random_array(0)) == 0
output: import random
  
  def generate_random_array(size):
      return [random.random() for _ in range(size)]