def rsentence(length=4):
 return ' '.join((rword(random.randint(4, 9)) for i in range(length)))

def rsentence ( length = 4 ) : return ' ' . join ( ( rword ( random . randint ( 4 , 9 ) ) for i in range ( length ) ) )
generate a random sentence-like string .