Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created April 7, 2015 10:58
Show Gist options
  • Save groovecoder/30ccb29fbff8f3866337 to your computer and use it in GitHub Desktop.
Save groovecoder/30ccb29fbff8f3866337 to your computer and use it in GitHub Desktop.
var contestants = ['Luke Crouch', 'Joseph Peters', 'Matt Casteel', 'Steven Copley', 'Blixa Morgan', 'Josh Mize'];
var winnerIdx = Math.floor(Math.random()*contestants.length);
alert(contestants[winnerIdx]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment