Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import random
  2.  
  3. def random_line1('paint.txt'):
  4. line = next('paint.txt')
  5. for num, aline in enumerate('paint.txt'):
  6. if random.randrange(num + 2): continue
  7. line = aline
  8. return line
  9.  
  10. def random_line2('suffix.txt'):
  11. line = next('paint.txt')
  12. for num, aline in enumerate('paint.txt'):
  13. if random.randrange(num + 2): continue
  14. line = aline
  15. return line
  16.  
  17. print random_line1 + random_line2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement