def fake_text_id(size=6, chars=(string.ascii_lowercase + string.digits)):
 return ''.join((random.choice(chars) for x in range(size)))

def fake_text_id ( size = 6 , chars = ( string . ascii_lowercase + string . digits ) ) : return '' . join ( ( random . choice ( chars ) for x in range ( size ) ) )
create a random text id .