Say I have an array in javascript like
[[1,2,3],[4,5,6],[7,8,9],[10,11,12],[13,14,15],[16,17,18]]
Can I random shuffle the elements of subarrays to get something like this
[[16,4,10],[8,3,9],[1,14,18],[2,5,7],[6,17,11],[12,13,15]]
EDIT: All the subarrays are of same length. And the new array will have subarrays of the same length as the old one.