Shuffles an array’s contents into random order, returning a new array.
_array | Array of values to shuffle [Array, containing anything except nil] |
New array containing shuffled values from original array [Array]
_result = [[1, 2, 3, 4, 5]] call CBA_fnc_shuffle; // _result could be [4, 2, 5, 1, 3]
Allow shuffling of elements in-place, using the original array.
toadlife (version 1.01) http://toadlife.net (rewritten by Spooner)