Created
September 7, 2010 21:40
-
-
Save sleepynate/569170 to your computer and use it in GitHub Desktop.
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/env python | |
# generate gibberish for filling up webapp pages | |
import random | |
def sploot(yarfle = 10): | |
berdankle = open('/usr/share/dict/american-english').readlines() | |
return " ".join([ random.choice(berdankle).strip() for schmicknoch in range(yarfle) ]) | |
if __name__ == '__main__': | |
from sys import argv | |
print argv | |
if len(argv) > 1: | |
print sploot(int(argv[1])) | |
else: | |
print sploot() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment