/** * Auxiliary Array functions * Mostly legacy stuff * * @author Zeh Fernando * @version 1.0.0 * * 14 oct 06 (1.0.0) - First version */ class zeh.auxiliary.AuxArray { /** * There's no constructor. */ public function AuxArray () { trace ("This is an static class and should not be instantiated.") } public static function shuffle (p_array:Array):Void { var len:Number = p_array.length; var i:Number = len; var p:Number; var t:Number; while (i--) { p = random(len); t = p_array[i]; p_array[i] = p_array[p]; p_array[p] = t; } } }