def sentence():
 sections = [u' '.join(random.sample(WORDS, random.randint(3, 12))) for i in range(random.randint(1, 5))]
 s = u', '.join(sections)
 return (u'%s%s%s' % (s[0].upper(), s[1:], random.choice('?.')))

def sentence ( ) : sections = [ u' ' . join ( random . sample ( WORDS , random . randint ( 3 , 12 ) ) ) for i in range ( random . randint ( 1 , 5 ) ) ] s = u', ' . join ( sections ) return ( u'%s%s%s' % ( s [ 0 ] . upper ( ) , s [ 1 : ] , random . choice ( '?.' ) ) )
returns a randomly generated sentence of lorem ipsum text .