English
Source / code snippets

The hmzigste "6 from __"-Tippgenerator

 

p.specht


Window Title "Tippgenerator (tuned for D: 6 from 49)"
var anzahl&=6
var gesamt&=49
'  The 'ca. 1000ste' Tippgenerator for Zahlenlotto
'  2012 Freeware P.woodpecker
'  Use on alleinige menace the/the users!
'  No Gewähr! The legal recourse is impossible!
'
'  Info: Lt. Wikipedia existed (Feb. 2012)
'  following länderspezifisch different systems:
'  belgium 	6 from 45 (To september 2011: 6 from 42)
'  Bulgarien 	6 from 49, 6 from 42, 5 from 35
'  denmark 	7 from 36, 6 from 48
'  Germany 	6 from 49 plus 1 from 10
'  france 	5 from 49 plus 1 from 10
'  greece 	6 from 49
'  italy 	6 from 90
'  Liechtenstein (To 05.08.2011) [5] 	6 from 49
'  lithuania 	6 from 30
'  Niederlande 	6 from 45 plus 1 from 6
'  Österreich 	6 from 45
'  5 from 90 (Zahlenlotto 1–90)
'  poland 	6 from 49, 5 from 42
'  Québec/canada 	6 from 49
'  Schweden 	7 from 35
'  switzerland 	6 from 45 (Lotto)
'  6 from 45 plus 1 from 3 (Lotto plus)
'  spain 	6 from 49
'  USA 	5 from 59 plus 1 from 39 (Powerball)
'  5 from 56 plus 1 from 46 (Mega Millions)
'  UK (Vereinigtes Kingdom) 	6 from 49
RANDOMIZE' <<< VERY WICHTIG !
Declare r&,n&,z%[6],erro%,i%,j%,z%,t%
Font 2
Cls rnd(8^8)

Whilenot %key=2

    n&=0

    Repeat

        r&=rnd(Gesamt&)+1
        erro%=0

        WhileLoop n&

            if r&=z%[&Loop]

                erro%=1
                break

            endif

        Endwhile

        case erro%=1:continue
        n&=n&+1
        z%[n&]=r&

    Until n&=Anzahl&

    WhileLoop Anzahl&:i%=&Loop

        WhileLoop Anzahl&:j%=&Loop

            if z%[j%] > z%[i%]

                z%=z%[j%]:z%[j%]=z%[i%]:z%[i%]=z%

            endif

        EndWhile

    Endwhile

    WhileLoop Anzahl&

        locate %csrlin,%pos+5
        print " ";
        case z%[&Loop]<10:print " ";
        print z%[&Loop],

    Endwhile

    Print:print

    if (z%[6]>Gesamt&) or (z%[1]<1):beep:print:Print "GRENZWERT-ERROR!": WaitInput:endif

        if %csrlin>22:WaitInput:cls rnd(8^8):endif

        EndWhile

        End
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
04/25/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

572 Views

Untitledvor 0 min.
N.Art07/21/22
Ernst07/21/21
Uwe ''Pascal'' Niemeier06/13/21
R.Schneider05/28/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie