Is there a simple way to randomize the order of columns in a 2d array? For example could I use it to randomize the columns of this 2d array
int[][] dataArray = {{1, 1, 0, 1, 0, 0},
{0, 0, 1, 0, 1, 1},
{1, 1, 1, 1, 1, 1},
{0, 0, 0, 0, 1, 1}};
I have been trying for awhile with little luck so far. What i am trying to do is make columns 1 2 3 4 5 6 randomly become columns 2 3 1 6 5 4 for example. I have tried randomly drawing numbers and trying to make the columns match the order but i can't seem to get that working.