input: Write a python function to generate a subset of random numbers from the given array.
  assert len(generate_subset([4, 5, 2, 9, 8, 6, 2, 3, 7, 1], 5)) == 5
  assert len(generate_subset([10, 20, 30, 40, 50, 60, 70, 80, 90, 100], 3)) == 3
  assert len(generate_subset([1, 2, 3, 4, 5], 2)) == 2
output: import random
  
  def generate_subset(arr, subset_size):
      return random.sample(arr, subset_size)