Skip to content

Instantly share code, notes, and snippets.

@rbalazs
Created October 29, 2013 16:25
Show Gist options
  • Save rbalazs/7217949 to your computer and use it in GitHub Desktop.
Save rbalazs/7217949 to your computer and use it in GitHub Desktop.
Pick random lement from array.
randomPointOnCirlce = points[Math.floor(Math.random() * points.length)];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment