input: Write a function to generate a random 6-digit number in Python and return it as an integer. If the number is not between 100000 and 999999, raise a ValueError.
  def random_six_digit_number():
      number = random.randint(100000, 999999)
      if number < 100000 or number > 999999:
          raise ValueError("Number is not within the 6-digit range")
      return number
  assert random_six_digit_number() >= 100000
  assert random_six_digit_number() <= 999999
output: def random_six_digit_number():
      number = random.randint(100000, 999999)
      if number < 100000 or number > 999999:
          raise ValueError("Number is not within the 6-digit range")
      return number