Hi I can't seem to figure out how the maths work in this simple for and next loop. I'm trying to number, the random numbers generated in the array, from 1 to 40. I'm have tried everything I can think of but to no avail, are there any good links, that could teach me or can anyone talk me through the fundamental basics of how a computer will output what I want it to.
I do feel a bit stupid asking this simple question, but I'm beginning to realize now that programming involves a lot of maths, which unfortunatley is not one of my strongest points!
Thanks Ant !
dim ages(4,10)
for x=1 to 4
for y=1 to 10
ages(x,y)=rnd(100)
next y
next x
for x=1 to 4
for y=1 to 10
num=(1*y)
set cursor x*150,y*20
print num,"= ",ages(x,y)
wait 50
next y
next x
wait key
end