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


You need to login to view comments.