(self, length=6)
return random.sample(self.choices, length)
Generate a random string with the given length.

        :param length: the return string length.
Generate a random string with the given length.
Generate a random string with the given length .
def random(self, length=6):
        """Generate a random string with the given length.

        :param length: the return string length.
        """
        return random.sample(self.choices, length)
def random ( self , length = 6 ) : return random . sample ( self . choices , length )