[beginner] Gokken

t1 = "Welkom bij het gokautomaat."

t2 = "Geef een cijfer van 1 t/m 50!"


Randomize Timer
echt = (int(rnd*50))+1



msgbox t1
gok = inputbox(t2)



gok2 = cdbl(gok)


if echt = gok2 then


msgbox "Goed!"
prijs = cstr(int(rnd*10000000))

msgbox "Je wint de prijs van €" & prijs + "!"


else


msgbox "Fout..."


end if

No comments yet.

No trackbacks yet.