Jquery randomly hide 2 number without repeating the previous one
<p>How can i randomly chose any 2 numbers and hide it using jquery.
i know that i can just use the function twice and it will work 2 times.
but it will repeat the previous too. therefore sometime one of the element will not hide.</p>

<pre><code>randomtip = function(){
            var length = $("li.ad1 a").length;
            var ran = Math.floor(Math.random()*length);
            $("li.ad1 a:nth-child(" + ran + " )").hide();
        };

        randomtip();
</code></pre>
