Return to Snippet

Revision: 40693
at February 5, 2011 05:11 by gandreini


Initial Code
var randomItem:* = myArray[int(Math.random() * myArray.length)];

Initial URL
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html#random%28%29

Initial Description

                                

Initial Title
Pick a random item from an array

Initial Tags
array

Initial Language
ActionScript 3