Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # Give me 5 random words
- # out of the system dict
- import random
- with open('/usr/share/dict/words.pre-dictionaries-common', 'rt') as f:
- words = f.readlines()
- words = [w.rstrip() for w in words]
- for w in random.sample(words, 5):
- print w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement