Skip to content

Instantly share code, notes, and snippets.

@dp7k
Created April 30, 2015 17:18
Show Gist options
  • Select an option

  • Save dp7k/c66b695b0c51bf36bf0e to your computer and use it in GitHub Desktop.

Select an option

Save dp7k/c66b695b0c51bf36bf0e to your computer and use it in GitHub Desktop.
cli Lotto ("6aus49")/Eurojackpot lottery random number generator
alias eurojackpot='echo $(shuf -i 1-50 -n 5|sort -n|tr "\n" " ") \| $(shuf -i 1-10 -n 2|sort -n|tr "\n" " ")'
alias lotto='echo $(shuf -i 1-49 -n 6|sort -n|tr "\n" " ")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment