dddp/alea.py
def random_string(self, length, alphabet):
        """Return string of `length` elements chosen from `alphabet`."""
        return ''.join(
            self.choice(alphabet) for n in range(length)
        )
def random_string(self, length, alphabet):
        return ''.join(
            self.choice(alphabet) for n in range(length)
        )
def random_string ( self , length , alphabet ) : return '' . join ( self . choice ( alphabet ) for n in range ( length ) )
Return string of `length` elements chosen from `alphabet`.
Return string of length elements chosen from alphabet .