input: Write a python function to generate a random array with a given maximum size.
  assert len(get_random_array(10)) <= 10
  assert all(isinstance(x, int) for x in get_random_array(5))
  assert all(0 <= x <= 5 for x in get_random_array(5))
output: import random
  
  def get_random_array(max_size):
      size = random.randint(0, max_size)
      return [random.randint(0, max_size) for _ in range(size)]