Wer ein Linux oder Unix (z.B. Mac OS X) auf dem Computer hat kann sich echte Zufallszahlen herauslassen. Für die unterschiedlichen Lottosysteme habe ich ein paar Bashskripte gebaut die 'echte Zufallszahlen' (d.h. auf radioaktive Zerfallsprozessen beruhend) von random.org holen und auswerten.

Es muss lynx und tee installiert sein (unter Debian/Kubuntu z.B. mit apt-get install lynx) und folgende Einträge habe ich in die /etc/profile eingetragen:

alias blotto='echo "Lottozahlen"|tee -a ~/.lotto;echo $(date)|tee -a ~/.lotto;echo "**"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=13&max=49"|head -n 6|sort -n|tee -a ~/.lotto;echo "**"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=0&max=9"|head -n 1| tee -a ~/.blotto'

alias lotto='echo "Lottozahlen"|tee -a ~/.lotto;echo $(date)|tee -a ~/.lotto;echo "**"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=1&max=49"|head -n 6|sort -n|tee -a ~/.lotto;echo "**"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=0&max=9"|head -n 1| tee -a ~/.lotto'

alias megamillions='echo "MegaMillions"|tee -a ~/.lotto;echo $(date)|tee -a ~/.lotto;echo "**"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=13&max=52"|head -n 5|sort -n|tee -a ~/.lotto;echo "Bonusball"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=1&max=46"|head-n 1| tee -a ~/.mlotto'

alias powerball='echo "PowerBall"|tee -a ~/.lotto;echo $(date)|tee -a ~/.lotto;echo "**"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=13&max=55"|head -n 6|sort -n|tee -a ~/.lotto;echo "RoteKugel"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=1&max=42"|head -n 1|tee -a ~/.plotto'

export lotto

alias elotto='echo "EuroMillions"|tee -a ~/.elotto;echo $(date)|tee -a ~/.elotto;echo "**"|tee -a ~/.elotto;lynx --dump "http://random.org/cgi-bin/randseq?min=1&max=50"|head -n 5|sort -n|tee -a ~/.elotto;echo "Sterne"|tee -a ~/.lotto;lynx --dump "http://random.org/cgi-bin/randseq?min=1&max=9"|head -n 2| sort -n|tee -a ~/.elotto'

export blotto

alias lotty='echo "Lotty"|tee -a ~/.lotty;echo $(date)|tee -a ~/.lotto;echo "**"|tee -a ~/.lotty;lynx--dump "http://random.org/cgi-bin/randseq?min=13&max=49"|head -n 7|sort -n|tee -a ~/.lotty;'

export megamillions
alias lotter='echo "Lotty"|tee -a ~/.lotter;echo $(date)|tee -a ~/.lotter;echo "**"|tee -a ~/.lotter;lynx --dump "http://random.org/cgi-bin/randseq?min=13&max=90"|head -n 6|sort -n|tee -a ~/.lotter;'

alias elgordo='echo "El Gordo"|tee -a ~/.lotter;echo $(date)|tee -a ~/.lotter;echo "**"|tee -a ~/.lotter;lynx --dump "http://random.org/cgi-bin/randseq?min=1&max=54"|head -n 5|sort -n|tee -a ~/.lotter;lynx --dump "http://random.org/cgi-bin/randseq?min=0&max=9"|head -n 1| sort -n|tee -a ~/.elotto'

export powerball
export elgordo
export elotto
export lotty
export lotter


Wenn man sich mit seinem Usernamen einloggt muss man in seine $HOME/.profile noch

. /etc/profile

eintragen.

Ab dann kann man sich z.B. mit

lotto

die Zahlen ausgeben lassen.