def random_text(length, alph=(string.ascii_letters + string.digits)):
 return ''.join((random.choice(alph) for _ in range(length)))

def random_text ( length , alph = ( string . ascii_letters + string . digits ) ) : return '' . join ( ( random . choice ( alph ) for _ in range ( length ) ) )
random text generator .