Created
February 10, 2014 22:19
-
-
Save rviscomi/8925420 to your computer and use it in GitHub Desktop.
Selecting a Meetup attendee at random
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#rsvp-list li').eq(Math.floor(Math.random()*149)+1).find('a').text() |
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
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).