summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/json/test/make-strings.py
blob: c8c1a9d8439e42976949d4b725fccfef4d6deca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Build array of random strings

import os
import random
from random import randint

def randstr():
    letters = "0123456789!@#$%^&*()_-+=[]{}|;:,<.>/?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    return ''.join(random.choice(letters) for i in range(randint(1, 2000)));

print "[";
for i in range(1000):
    print "\"", randstr(), "\",";
print "\"", randstr(), "\"";
print "]";