Created
June 20, 2019 13:14
-
-
Save jakekara/4922c5fdf820c15245ee17cdcfdc5b20 to your computer and use it in GitHub Desktop.
One-liner Bash script that runs python -c to generate 40 (pseudo)random digits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# print a pseudorandom string of 40 integers from command line | |
$(python -c "import random; print(''.join([str(random.randint(0,9)) for x in range(40)]))") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment