usr bin env python coding utf-8 import random delimiters eols lambda r

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/usr/bin/env python
# coding=utf-8
import random
delimiters = (', ', ' - ', '-', '! ', '; ', '. ', '... ', '? ', '?! ', '?? ')
eols = ('...', '.', '?', '?!', '??', '!', '')
d = lambda: random.choice((' ', random.choice(delimiters)))
e = lambda: random.choice(eols)
w = lambda: u'хм' + u'м' * random.randint(0, 4)
words = ( w() for i in xrange(random.randint(2, 15)) )
print reduce(lambda x,y: d().join((x,y)), words) + e()