var _source:Array = [1,2,3,4,5,6,7,8,9,0]; var _result:Array = []; while (_source.length > 0) { _result.push(_source.splice(Math.round(Math.random() * (_source.length - 1)), 1)[0]); }