title: Randomly "shaking" an array to assign new random spots
body: <p>What Im trying to do is take my array coins[]. And basically rearrange each coin to a different position. This is what i have so far. When I do this though, nothing happens. Meaning all the values stay the same. Except for the last one. That one changes.  </p>
  
  <pre><code>public void shake() 
  {
      for (int i = 0; i &lt; coins.length; i++)
      {
          int index = Coin.RANDOM.nextInt(coins.length);
          Coin temp = coins[index];
          coins[index] = coins[i];
          coins[i] = temp;
  
          System.out.print(coins[i] + ", ");
      }
  }
  </code></pre>
  
  <p>I instantiate random like this:</p>
  
  <pre><code>public static long SEED = System.currentTimeMillis();
  public static Random RANDOM = new Random(SEED);
  </code></pre>