Last active
January 9, 2016 19:19
-
-
Save nwjlyons/90d599d47e9aabdd65a6 to your computer and use it in GitHub Desktop.
The National Lottery number generator
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
python -c "from random import sample; print 'EuroMillion numbers: %s %s' % (sample(range(1, 51), 5), sample(range(1, 12), 2))" |
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
python -c "from random import sample; print 'Lotto numbers: %s' % sample(range(1, 60), 6)" |
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
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