title: how select randomly from an int array, then remove the selected element
body: <p>im trying to select randomly from an array to print it, then remove it from the array, to avoid printing out the same number twice. i am a bit of a java novice so was wondering if someone could point me where im going wrong. </p>
  
  <pre><code>public static void main(String[] args) {
      int[] colm = { 1, 2, 3, 4, 5, 67, 87 };
      Random rand = new Random();
  
      for (int i = 0; i &lt; 5; i++)
          System.out.println(" " + colm[rand.nextInt(colm.length)]);
  
  }
  </code></pre>
  
  <p>thanks</p>