Skip to content

Instantly share code, notes, and snippets.

@ggmartins
Created May 3, 2019 14:59
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 ggmartins/b880177947f3909395c2d565b835e44e to your computer and use it in GitHub Desktop.
Save ggmartins/b880177947f3909395c2d565b835e44e to your computer and use it in GitHub Desktop.
Lottery / Megasena Number Generator for python one liners
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)"
@ggmartins
Copy link
Author

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)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment