/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var randomItem:* = myArray[int(Math.random() * myArray.length)];
URL: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html#random%28%29