Show random classes
<p>Let's say I have some classes like:</p>

<pre><code>&lt;div class="something" style="display: none"&gt;Some text I would like to show&lt;/div&gt;
&lt;div class="something" style="display: none"&gt;Some text2 I would like to show&lt;/div&gt;
&lt;div class="something" style="display: none"&gt;Some text3 I would like to show&lt;/div&gt;
&lt;div class="something" style="display: none"&gt;Some text4 I would like to show&lt;/div&gt;
&lt;div class="something" style="display: none"&gt;Some text5 I would like to show&lt;/div&gt;
</code></pre>

<p>And I want to show random class every few seconds. I suppose pseudo-code would be something like that:</p>

<pre><code>    setInterval(function() {
        $('.something').hide();
        var rand_number = random(1, ('.something').length);
        $('.something').array[rand_number].show();
    }, 5000);
</code></pre>

<p>Thanks.</p>
