android: randomize JSON array number
<blockquote>
  <p>setImage(cachedImage1, image1, prjcts.get(x));
            setImage(cachedImage2, image2, prjcts.get(x);
            setImage(cachedImage3, image3, prjcts.get(x));</p>
</blockquote>

<p>I need to replace x from prjcts.get(x) with a random number between 1 until the maximum entry on my JSON file. The maximum number should be felxible, I can add and delete the entry as much as I want. 
And one more thing, the numbers aren't allowed to be the same between each other.</p>

<p>Can anybody help me with this?</p>

<p>Thank you very much.</p>
