Skip to content

Instantly share code, notes, and snippets.

@mimshwright
Created March 20, 2011 19:40
Show Gist options
  • Select an option

  • Save mimshwright/878605 to your computer and use it in GitHub Desktop.

Select an option

Save mimshwright/878605 to your computer and use it in GitHub Desktop.
A quick way to select a random string or object.
// randomly returns one of the three strings
var word:String = ["Alpha", "Bravo", "Charlie"] [int(Math.random() * 3)];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment