How to get random element in jquery?
<p>How can I return a random element in jQuery by doing something like <code>$(.class).random.click()</code>?</p>

<p>So, if <code>.class</code> had 10 links, it would randomly click one of them.</p>

<p>Here is what I did:</p>

<pre><code>var rand_num = Math.floor(Math.random()*$('.member_name_and_thumb_list a').size());
$(".member_name_and_thumb_list a").eq(rand_num).click();
</code></pre>
