Skip to content

Instantly share code, notes, and snippets.

Avatar

Viktor therollingtester

View GitHub Profile
View randstr.py
import random
from string import letters
def randstr(n):
return ''.join(random.choice(letters) for i in range(n))
# return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(N))
if __name__ == '__main__':
import sys
n = int(sys.argv[1]) if len(sys.argv) == 2 else 100
You can’t perform that action at this time.