get a random color


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

return a random color


Copy this code and paste it in your HTML
  1. public static function getRandomColor():uint{
  2. var color:uint = Math.random()*0xFFFFFF;
  3. return color;
  4. }

Report this snippet


Comments


You need to login to view comments.