Array Inspector
Hello guys .
I have an Array Inspector
its like
\/ Foods Size [ 10 ] Element 0 [ Food1 ] Element 1 [ Food2 ] Element 2 [ Food3 ] Element 3 [ Food4 ] Element 4 [ Food5 ] Element 5 [ Food6 ] Element 6 [ Food7 ] Element 7 [ Food8 ] Element 8 [ Food9 ] Element 9 [ Food9 ]
What I wanna do is I want to randomize the field on Element 0 to 4 and Element 5 - 9..
I want a random output like this \/ Foods Size [ 10 ] Element 0 [ Food2 ] Element 1 [ Food1 ] Element 2 [ Food3 ] Element 3 [ Food5 ] Element 4 [ Food4 ] Element 5 [ Food6 ] Element 6 [ Food8 ] Element 7 [ Food5 ] Element 8 [ Food7 ] Element 9 [ Food9 ]
create a list of all foods. run random on all of them, assign the result to the first Foods element and remove it from the list. This way you're using each Food randomly just once