def rand_text(length, bad='', chars=allchars):
 return rand_base(length, bad, chars)

def rand_text ( length , bad = '' , chars = allchars ) : return rand_base ( length , bad , chars )
generate random string for websites .