jQuery: select random elements
<p>How can I select the first 5 random elements</p>

<pre><code>&lt;ul&gt;
    &lt;li&gt;First&lt;/li&gt;
    &lt;li&gt;Second&lt;/li&gt;
    &lt;li&gt;Third&lt;/li&gt;
     ...
    &lt;li&gt;N&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p><a href="http://blog.mastykarz.nl/jquery-random-filter/" rel="nofollow">I'm using this plugin</a>:</p>

<pre><code>alert($("li:random").text());
</code></pre>

<p>but it takes all random elements. I only want the first 5.</p>

<p>Is there another way to do the same thing?</p>

<p>Thanks!</p>
