Randomly iterate over ArrayList<Integer> in Java
<p>Seems a very basic question. I've an <code>ArrayList&lt;Integer&gt; al</code> and I would like to iterate over it. Normally,</p>

<pre><code>for(int i : al) {
    // some code
}
</code></pre>

<p>does the trick. But my requirement is to iterate not in sequence but randomly.</p>
