Skip to content

Instantly share code, notes, and snippets.

@caubry
Created February 22, 2013 16:38
Show Gist options
  • Save caubry/5014738 to your computer and use it in GitHub Desktop.
Save caubry/5014738 to your computer and use it in GitHub Desktop.
private function pickSide():Number
{
stageSide = Random.choose(sides);
if(stageSide == lastSides)
{
pickSide();
}
else
{
return stageSide;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment