Sorry, I didn't express myself well.
I want a array with shuffled numbers, and not ordened numbers. The array contains numbers, 1 to x, ordered randomly (each time the order is different), like in my code (above).
Thank you 
Regards,
Ricardo
while (array(4) = array(3)) or (array(4) = array(2)) or (array(4) = array(1))
array(4)=Int((x) * Rnd + 1)
wend
But, in this case, if x is a big number (like 100), the code will be very big too...
Any idea?
Thanks in advance
Ricardo http://bbs.prog365.com/images/sites/biggrin.gif |