Add to ArrayList
<p>This is a part of my code:</p>

<pre><code>int n= random.nextInt(images.length - 1);        
iv.setImageResource(images[n]);  
</code></pre>

<p><code>Int n</code> choose one of the indexes randomly and then I used <code>ImageResource</code> to show pictures according to the the random indexes. Now I want to add <code>n</code> to <code>ArrayList</code>. How should I do it? Is there any better way to save a value in memory in android?</p>
