Java - non duplicate fields
<p>I've got a big problem. I've got an array with pictures and when <strong>you chose one picture</strong> that one must be <strong>deleted from</strong> the <strong>picture</strong> array.</p>

<pre><code>String[] picture = { "blue", "white", "red", "yellow" };

int number_picture1; 

// Random function to find a random picture
Random ran = new Random();

number_picture1 = ran.nextInt(picture.length);
System.out.println(picture[number_picture1]);

// There is still posibility to chose the same picture

int number_picture2; 

number_picture2 = ran.nextInt(picture.length);
System.out.println(picture[number_picture2]);
</code></pre>
