@classmethod
def make_iv(cls, gene: int) ->'Stats':
    """Create IV stats from a Pokémon's gene.

        :param gene: An ``int`` generated by the PRNG.
        :return: A ``Stats`` instance.
        """
    return cls(hp=gene % 32, attack=(gene >> 5) % 32, defense=(gene >> 10) %
        32, speed=(gene >> 16) % 32, special_attack=(gene >> 21) % 32,
        special_defense=(gene >> 26) % 32)
