android: generate random number without repetition
<p>can anybody help me in making a method to generate random number without repetition in Android?
The maximum number is: <code>prjcts.size();</code> it's my JSON Array. And the return value should be in integer. </p>

<p>What I've already had is:
<code>int i = (int)(prjcts.size() * Math.random());</code> I casted the method 3 times, because I need 3 random generated numbers. It works, but I don't know how to make it without repetition. So those 3 numbers won't be the same between each other.</p>

<p>Thank you</p>
