GetShuffledElements (open)
Shuffles the given array randomly, using the Durstenfeld algorithm for Fisher Yates shuffling.
Syntax
LOADLIB "wh::util/algorithms.whlib";
VARIANT FUNCTION GetShuffledElements(VARIANT input)
Parameters
VARIANT input
An array of values (all array types are supportd)
Return value
VARIANT
The input array, reshuffled to a random order.