Revision: 12880
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 31, 2009 11:47 by cessnajumpin
Initial Code
var originalArray:Array = new Array("alpha", "bravo", "charlie", "delta", "echo", "foxtrot"); var shuffledArray:Array = originalArray.sort(shuffle); trace(shuffledArray); function shuffle(originalArray,shuffledArray):int { var sortNum : int = Math.round(Math.random() * 2) - 1; return sortNum; }
Initial URL
Initial Description
Just uses the sort function to randomize an array
Initial Title
Unique Random Array
Initial Tags
Initial Language
ActionScript 3