/ Published in: ActionScript 3
Very Handy Time Saver Random Choice Function
Expand |
Embed | Plain Text
function randomChoice(...args:Array):*{ return args[int(Math.random()*args.length)]; }
You need to login to post a comment.
Very Handy Time Saver Random Choice Function
function randomChoice(...args:Array):*{ return args[int(Math.random()*args.length)]; }
You need to login to post a comment.