Zurück   WettenForum.com > Spieler-Forum > Lotto
Portal Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren

Antwort
 
Themen-Optionen Thema durchsuchen Ansicht
  #1  
Alt 12.11.2008, 07:28
joblack joblack ist offline
Member
 
Registriert seit: 24.09.2008
Beiträge: 64
Standard Skript für Zufallszahlen (Linux/Unix)

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.
Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 17:27 Uhr.


Powered by vBulletin Version 3.5.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0 © 2005, Crawlability, Inc.