<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def avatar(self, size: int = 256) -> str: """Generate a random avatar.. :param size: Size of avatar. :return: Link to avatar. """

        url = 'https://api.adorable.io/avatars/{0}/{1}.png'
        return url.format(size, self.password(hashed=True))