Skip to content

Instantly share code, notes, and snippets.

@jakekara
Created June 20, 2019 13:14
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 jakekara/4922c5fdf820c15245ee17cdcfdc5b20 to your computer and use it in GitHub Desktop.
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
#!/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