I only bought DarkBasic like 2 days ago and I came up with this program;
dim lotto$(49)
lotto$(1)="1"
lotto$(2)="2"
lotto$(3)="3"
lotto$(4)="4"
lotto$(5)="5"
lotto$(6)="6"
lotto$(7)="7"
lotto$(8)="8"
lotto$(9)="9"
lotto$(10)="10"
lotto$(11)="11"
lotto$(12)="12"
lotto$(13)="13"
lotto$(14)="14"
lotto$(15)="15"
lotto$(16)="16"
lotto$(17)="17"
lotto$(18)="18"
lotto$(19)="19"
lotto$(20)="20"
lotto$(21)="21"
lotto$(22)="22"
lotto$(23)="23"
lotto$(24)="24"
lotto$(25)="25"
lotto$(26)="26"
lotto$(27)="27"
lotto$(28)="28"
lotto$(29)="29"
lotto$(30)="30"
lotto$(31)="31"
lotto$(32)="32"
lotto$(33)="33"
lotto$(34)="34"
lotto$(35)="35"
lotto$(36)="36"
lotto$(37)="37"
lotto$(38)="38"
lotto$(39)="39"
lotto$(40)="40"
lotto$(41)="41"
lotto$(42)="42"
lotto$(43)="43"
lotto$(44)="44"
lotto$(45)="45"
lotto$(46)="46"
lotto$(47)="47"
lotto$(48)="48"
lotto$(49)="49"
print "Your 1st lottery number- ",lotto$(rnd(49))
print "Your 2nd lottery number- ",lotto$(rnd(49))
print "Your 3rd lottery number- ",lotto$(rnd(49))
print "Your 4th lottery number- ",lotto$(rnd(49))
print "Your 5th lottery number- ",lotto$(rnd(49))
print "Your 6th lottery number- ",lotto$(rnd(49))
print
print "PRESS ANY KEY TO EXIT."
suspend for key
NOW, my problem is, when i made an executable, i works fine until i reach the 4th number, it prints it but with no number and then the 5th number line overlaps it for some reason. Could any of you guys out there help me???
One more thing, how do i stop 1 number bieng pickeed twice, or all the numbers being the same??
THX for any help, Mark