Skip to content

Instantly share code, notes, and snippets.

@wido
Created October 22, 2019 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wido/3fc8d80bbb8db426e8e026efca2393ce to your computer and use it in GitHub Desktop.
Save wido/3fc8d80bbb8db426e8e026efca2393ce to your computer and use it in GitHub Desktop.
Python 3 one-liner generate random string
python3 -c "import random; import string; print(''.join(random.choice(string.ascii_lowercase) for i in range(10)))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment