input: Write a function to generate a random 6-digit number in Python. If the number is generated successfully, return the number as a string. If there is any issue with generating the number, return "Error".
  assert generate_6_digit_number()=="234567"
  assert generate_6_digit_number()=="123456"
  assert generate_6_digit_number()=="789123"
output: import random
  
  def generate_6_digit_number():
      try:
          return str(random.randint(100000, 999999))
      except:
          return "Error"