<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def year(self, minimum: int = 1990, maximum: int = 2050) -> int: """Generate a random year. :param minimum: Minimum value. :param maximum: Maximum value. :return: Year. """

        return self.random.randint(minimum, maximum)