i couldn't get it to work using the "print" command... but here's my version with the "text" command
randomize timer()
dim ages(150)
pageheight=24
width=60
height=20
set text font "arial"
for x=1 to 150
ages(x)=rnd(100)
next x
for y=1 to 150
text xpos, ypos, str$(y) + "= " + str$(ages(y))
wait 10
inc ypos, height
if (y - pageheight*(xpos/width))=>pageheight
inc xpos, width
ypos = 0
endif
next y
wait key
end
Quote: "also when using RND to generate random numbers, how do you make it, so they dont repeat."
if you use
at the begining of your code, you'll have different results everytime you run it. or at least so i'm told
"We make the worst games in the universe..."