home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 69
/
64er_Magazin_Sonderheft_69_19xx_Markt__Technik_de_Side_B.d64
/
rnd-lotto
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
338b
|
18 lines
1 rem mini-lotto
2 rem rnd-funktion zufallszahlen
3 rem --------------------------
10 print"[147]------------"
20 print" mini-lotto":print"------------"
30 fori=1to6
31 gosub90
32 next
33 forj=1to6:fori=6to1step-1
34 ifza(j)=za(i)thengosub90
35 nexti:printza(j):nextj
40 printtab(10)" n [146]eues spiel e [146]nde"
50 geta$
60 ifa$="n"thenrun
70 ifa$="e"thenend
80 goto50
90 za(j)=int(rnd(0)*49)+1:return