I want to shuffle a int array with 8 element but I want that when I shuffle it array index and element on that index should not be same
My array is
int num[]={0,1,2,3,4,5,6,7,8};
Shuffel(num);
int a = num[0]; //a should not be equal to 0
int b = num[1]; //b should not be equal to 1
int c = num[2]; //c should not be equal to 2
int d = num[3]; //d should not be equal to 3
int e = num[4]; //e should not be equal to 4
Can anyone help in shuffling like this??