AimerNeige revised this gist . Go to revision
1 file changed, 3 insertions
gen_random_string.py(file created)
@@ -0,0 +1,3 @@ | |||
1 | + | def generate_random_string(n): | |
2 | + | letters = string.ascii_letters + string.digits | |
3 | + | return ''.join(random.choice(letters) for _ in range(n)) |
Newer
Older