def oo_random_word(length, source='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
 return ''.join((random.choice(source) for i in range(length)))

def oo_random_word ( length , source = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' ) : return '' . join ( ( random . choice ( source ) for i in range ( length ) ) )
generates a random string of given length from a set of alphanumeric characters .