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