% Start with Array of Values you have A=["bird" "cat" "dog" "pig" "goat" "horse" "cow"] % To shuffle them you want to reindex them with a random permuation % of indicies 1 though the length of the orginal array. SHUFFLED_A=A(randperm(length(A))
% Start with Array of Values you have A=["bird" "cat" "dog" "pig" "goat" "horse" "cow"] % To shuffle them you want to reindex them with a random permuation % of indicies 1 though the length of the orginal array. SHUFFLED_A=A(randperm(length(A))