def randoms(count, alphabet=string.lowercase):
 return ''.join((random.choice(alphabet) for _ in xrange(count)))

def randoms ( count , alphabet = string . lowercase ) : return '' . join ( ( random . choice ( alphabet ) for _ in xrange ( count ) ) )
randoms -> str returns a random string of a given length using only the specified alphabet .