Created
December 20, 2013 14:55
-
-
Save chetmancini/8055836 to your computer and use it in GitHub Desktop.
Get a random list of 5 words. Imagine the possibilities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from random import shuffle | |
with open("/usr/share/dict/words") as f: | |
content = f.readlines() | |
shuffle(content) | |
for word in content[:5]: | |
print word |
jcartledge
commented
Nov 23, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment