input: Write a function to generate a list of N random integers between 1 and M.
  assert len(generate_random_list(10, 100)) == 10
  assert all(1 <= num <= 100 for num in generate_random_list(10, 100))
  assert len(generate_random_list(5, 50)) == 5
output: import random
  
  def generate_random_list(N, M):
      return [random.randint(1, M) for _ in range(N)]