LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i rearrange arrays randomly


0 Kudos
Message 1 of 2
(2,693 Views)
I guess you mean the elements in an array vs. seperate arrays themselves??.
Obviously the sort 1D array vi is not random, but if you had a random list of numbers (0 to array max-size, with no duplicates) and used a For loop to feed this list into an Index Array vi, you could then obtain your array elements in a random order. You would have each loop output feed a new Array in the new sort order. Use the For loop iteration # to index your new array. I've done this before and it can work, but you'll have to experiment with your exact situation. Key is to use a random list for your re-indexing.
Message 2 of 2
(2,693 Views)