danomaniac
Programmer
Question:
I'm trying to load a variable array with numbers, say 100, then sort them, and load a second array with the lowest, next lowest, etc.
something like
load a variable array:
for n = 1 to 100
variable1 = rnd(1000)
next
Then sort them and load another variable so that:
variable2(1) = the lowest
variable2(2) = the next lowest
variable2(3) = the next...etc.
but I don't know how to do that....I could dump them in a range, sort, then reload, but I'd like to do it in code.
"It's more like it is now, than it ever has been."
I'm trying to load a variable array with numbers, say 100, then sort them, and load a second array with the lowest, next lowest, etc.
something like
load a variable array:
for n = 1 to 100
variable1 = rnd(1000)
next
Then sort them and load another variable so that:
variable2(1) = the lowest
variable2(2) = the next lowest
variable2(3) = the next...etc.
but I don't know how to do that....I could dump them in a range, sort, then reload, but I'd like to do it in code.
"It's more like it is now, than it ever has been."