def rand_char(bad='', chars=allchars):
 return rand_base(1, bad, chars)

def rand_char ( bad = '' , chars = allchars ) : return rand_base ( 1 , bad , chars )
generate a random char with chars collection .