Posted By

burakkirkil on 07/29/12


Tagged


Versions (?)

Random Choice Function


 / Published in: ActionScript 3
 

Very Handy Time Saver Random Choice Function

  1. function randomChoice(...args:Array):*{
  2. return args[int(Math.random()*args.length)];
  3. }

Report this snippet  

You need to login to post a comment.