(length=5)
return s
Generate a random word-like string.
Generate a random word-like string.
Generate a random word - like string .
def rword(length=5):
    "Generate a random word-like string."
    s = ''
    for i in range(length):
        if i % 2 == 0:
            t = _consonants
        else:
            t = _vowels
        s += random.choice(t)
    return s
def rword ( length = 5 ) : s = '' for i in range ( length ) : if i % 2 == 0 : t = _consonants else : t = _vowels s += random . choice ( t ) return s