code: def year(self, minimum: int = 1990, maximum: int = 2050) -> int:
          
          return self.random.randint(minimum, maximum)
docs: Generate a random year.
  
          :param minimum: Minimum value.
          :param maximum: Maximum value.
          :return: Year.