Skip to content

Instantly share code, notes, and snippets.

@ndrsllwngr
Last active April 8, 2022 07:31
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 ndrsllwngr/688a8fe12e171aeec86fff5394126c1d to your computer and use it in GitHub Desktop.
Save ndrsllwngr/688a8fe12e171aeec86fff5394126c1d to your computer and use it in GitHub Desktop.
Lotto & EuroJackpot - random number generator (macOS)
# brew update
# brew install coreutils
echo $(gshuf -i 1-50 -n 5|sort -n|tr "\n" " ") \| $(gshuf -i 1-10 -n 2|sort -n|tr "\n" " ")
# brew update
# brew install coreutils
echo $(gshuf -i 1-49 -n 6|sort -n|tr "\n" " ") \ $(gshuf -i 0-9 -n 1|sort -n|tr "\n" " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment