code: def ssn(self, min_age=16, max_age=90):
          
          age = datetime.timedelta(
              days=self.generator.random.randrange(
                  min_age * 365, max_age * 365))
          birthday = datetime.date.today() - age
          if birthday.year < 2000:
              ik = self.generator.random.choice(('3', '4'))
          elif birthday.year < 2100:
              ik = self.generator.random.choice(('5', '6'))
          else:
              ik = self.generator.random.choice(('7', '8'))
  
          ik += "%02d%02d%02d" % ((birthday.year % 100), birthday.month,
                                  birthday.day)
          ik += str(self.generator.random.randrange(0, 999)).zfill(3)
          return ik + str(checksum([int(ch) for ch in ik]))
docs: Returns 11 character Estonian personal identity code (isikukood, IK).
  
          Age of person is between 16 and 90 years, based on local computer date.
          This function assigns random sex to person.
          An Estonian Personal identification code consists of 11 digits,
          generally given without any whitespace or other delimiters.
          The form is GYYMMDDSSSC, where G shows sex and century of birth (odd
          number male, even number female, 1-2 19th century, 3-4 20th century,
          5-6 21st century), SSS is a serial number separating persons born on
          the same date and C a checksum.
  
          https://en.wikipedia.org/wiki/National_identification_number#Estonia