def rand_text_alpha(length, bad=''):
 chars = (upperAlpha + lowerAlpha)
 return rand_base(length, bad, set(chars))

def rand_text_alpha ( length , bad = '' ) : chars = ( upperAlpha + lowerAlpha ) return rand_base ( length , bad , set ( chars ) )
generate a random string with alpha chars .