RSL
Member
I have an array and would like to never have the same number in any 2 words.
If you enter a 3 in my_array[0] and there is a 3 in my_array[4] I want the values to trade places. I would be ok with moving zero to the old array element.
By the way I want it to be ok to have 0 in as many words as you want. Multiple 0's are ok.
I have been testing on this for a while now and have come close but never quite got it.
If anyone can point me down the right path it would help a lot. I can't help but think there is a fairly easy way to do this?
I am programming in RS5000/CLX
If you enter a 3 in my_array[0] and there is a 3 in my_array[4] I want the values to trade places. I would be ok with moving zero to the old array element.
By the way I want it to be ok to have 0 in as many words as you want. Multiple 0's are ok.
I have been testing on this for a while now and have come close but never quite got it.
If anyone can point me down the right path it would help a lot. I can't help but think there is a fairly easy way to do this?
I am programming in RS5000/CLX