Hello §e,
I'm trying to get a random number with a shell command (bash, but another shell will be ok). Just for getting the next Euromillion's Jackpot (a random number game in Europe).
With Linux, the
Something like (adapted for the Euromillion):
But the
Well. Does Somebody know another command?
(the winner will get 1% of my gain - if over a million :beergrin)
I'm trying to get a random number with a shell command (bash, but another shell will be ok). Just for getting the next Euromillion's Jackpot (a random number game in Europe).
With Linux, the
shuf
command does that. I do not have try it (have no Linux), but this link http://www.tux-planet.fr/gagner-au-loto-grace-a-linux/ give the command (for another game).Something like (adapted for the Euromillion):
echo $(shuf -i 1-50 | head -n5 | sort -n) - $(shuf -i 1-11 | head -n2 | sort -n)
But the
shuf
command is
Code:
bash: shuf: command not found
Well. Does Somebody know another command?
(the winner will get 1% of my gain - if over a million :beergrin)