The steps of shuffling are as follows:
1.
Create a new array with the same dimension of the original array to be
shuffled.
2.
Select an item randomly from the original array and insert it in the new
array.
3.
Repeat the previous step until all items of the original array are
copied to the new array.
4.
Return the new array.