input: Write a function to generate a random sequence of integers of a given length using the random module.
  assert len(generate_random_sequence(10)) == 10
  assert len(generate_random_sequence(5)) == 5
  assert all(1 <= num <= 10 for num in generate_random_sequence(15))
output: import random
  
  def generate_random_sequence(length):
      return [random.randint(1, 10) for _ in range(length)]