Skip to content

Instantly share code, notes, and snippets.

@whiteclover
Created October 20, 2013 13:36
Show Gist options
  • Save whiteclover/7069750 to your computer and use it in GitHub Desktop.
Save whiteclover/7069750 to your computer and use it in GitHub Desktop.
import random
try:
import cStringIO as StringIO
except:
import StringIO
chs = ['a','b','c','d','e','f','g','h','i','j',
'k','l','m','n','o','p','q','r','s','t','u','v','w','x',
'y','z','A','B','C','D','E','F','G','H','I','J','K','L',
'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
'!','@','#','$','%','^','&','*','_','-','+','=',':',';',
',','.','?','/','~','`']
LINE_COUNT=200 * 10000
STRING_LEN=70
LEN = len(chs)
str_io = StringIO.StringIO()
for _ in range(LINE_COUNT):
for _ in range(STRING_LEN):
str_io.write(chs[random.randint(0, LEN-1)])
print(str_io.getvalue())
str_io.seek(0)
str_io.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment