/ Published in: ActionScript 3
Very Handy Time Saver Random Choice Function
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function randomChoice(...args:Array):*{ return args[int(Math.random()*args.length)]; }
function randomChoice(...args:Array):*{ return args[int(Math.random()*args.length)]; }