Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rviscomi
Created February 10, 2014 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rviscomi/8925420 to your computer and use it in GitHub Desktop.
Save rviscomi/8925420 to your computer and use it in GitHub Desktop.
Selecting a Meetup attendee at random
$('#rsvp-list li').eq(Math.floor(Math.random()*149)+1).find('a').text()
@rviscomi
Copy link
Author

The off by one code is there to prevent the organizer from being included in the results. 149 is the number of attendees minus the organizer.

Run this JS from the console of the meetup event page to randomly select an attendee (assuming all are present).

@funky-monkey
Copy link

This does not work anymore since they are now using React and not jQuery :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment