input: Write a python function to generate a random array of integers from 1 to n.
  assert len(generate_random_array(5)) == 5
  assert sorted(generate_random_array(5)) == [1, 2, 3, 4, 5]
  assert len(set(generate_random_array(10))) == 10
output: import random
  
  def generate_random_array(n):
      array = list(range(1, n + 1))
      random.shuffle(array)
      return array