def random_password_generator():
 characters = (string.letters + string.digits)
 pwd_size = constants.PASSWORD_SIZE
 return ''.join((random.choice(characters) for x in range(pwd_size)))

def random_password_generator ( ) : characters = ( string . letters + string . digits ) pwd_size = constants . PASSWORD_SIZE return '' . join ( ( random . choice ( characters ) for x in range ( pwd_size ) ) )
generates a random six character password with letters and digits .