How to pick random number of items randomly in an array
<p>I want to pick random number of inputs randomly in an array of input elements..<br>
If i use the below method i Can get one random item   </p>

<pre><code>jQuery.jQueryRandom = 0;
jQuery.extend(jQuery.expr[":"],
 {
  random: function(a, i, m, r) {
    if (i == 0) {
        jQuery.jQueryRandom = Math.floor(Math.random() * r.length);
    };
    return i == jQuery.jQueryRandom;
 }
});

$("input:random").prop('id')
</code></pre>

<p>But I want random number i=of items to be picked randomly in an array.</p>
