Melba has posted an example here:
I don't quite understand the 2D choices. There are several options you might consider:
1. shuffling rows
2. shuffling columns
3. shuffling elements (total 2D chaos)
czardas, I would much people asked questions and tried to help improve the code than just sat there and fumed because they thought it was not correct. This will be the Help file entry - I hope it is clear enough that others will not fall into the same trap:
###User Defined Function###
_ArrayShuffle
###Description###
Shuffles selected rows 1D and 2D arrays - can be limited to a specific column in 2D arrays
###Syntax###
#include <Array.au3>
_ArrayShuffle ( ByRef $aArray [, $iStart_Row