input: Write a function to generate an output which is a list with 10 random numbers between 1 and 100, inclusive. The function should use Python's random module to generate these numbers. If the number of random numbers required is not 10, the function should return an empty list.
  random_list()
  
  assert random_list()==[]
  assert len(random_list())==0
output: import random
  
  def random_list():
      if 10 != 10:
          return []
      return [random.randint(1, 100) for _ in range(10)]