Return to Snippet

Revision: 39674
at January 19, 2011 22:06 by tuffstudio


Initial Code
for (var i:uint = 0; i < myArray.length; i++)
{
   var rand:uint = int(Math.random() * myArray.length);
   myArray.push( myArray.splice( rand, 1 )[0] );
}

Initial URL

                                

Initial Description

                                

Initial Title
Randomize an Array

Initial Tags

                                

Initial Language
ActionScript 3