I am working with a game where I need to use 3d array.

I take random two elements from it and interchange their level,row and column positions . I am able to do this through a single dimensional array. But after doing this I can reflect the changes i made to objects in that 3d array.

So I need to reshuffle this array. Because the array is containing different card objects of a class cards. So I need to reshuffle this cards within the array according to its level,row and columns resp.

Please help..