Random Choice Function


/ Published in: ActionScript 3
Save to your folder(s)

Very Handy Time Saver Random Choice Function


Copy this code and paste it in your HTML
  1. function randomChoice(...args:Array):*{
  2. return args[int(Math.random()*args.length)];
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.