Created
May 3, 2019 14:59
-
-
Save ggmartins/b880177947f3909395c2d565b835e44e to your computer and use it in GitHub Desktop.
Lottery / Megasena Number Generator for python one liners
This file contains hidden or 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
python3 -c "import random as r,time as t,os;r.seed(t.time);x=[r.randint(1,60) for i in range(6)];x.sort();print(x)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python -c "import random as r,time as t,os;r.seed(t.time());x=r.sample(range(1,60),6);x.sort();print(x)"