Skip to content

Instantly share code, notes, and snippets.

@nwjlyons
Last active January 9, 2016 19:19
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 nwjlyons/90d599d47e9aabdd65a6 to your computer and use it in GitHub Desktop.
Save nwjlyons/90d599d47e9aabdd65a6 to your computer and use it in GitHub Desktop.
The National Lottery number generator
python -c "from random import sample; print 'EuroMillion numbers: %s %s' % (sample(range(1, 51), 5), sample(range(1, 12), 2))"
python -c "from random import sample; print 'Lotto numbers: %s' % sample(range(1, 60), 6)"
python -c "from random import sample; print 'Thunderball numbers: %s %s' % (sample(range(1, 40), 5), sample(range(1, 15), 1))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment