title: Array shuffling not working
body: <p>I am trying to write code to shuffle an Array without using Collections.</p>
  
  <p>My shuffle code </p>
  
  <p>the Amounts </p>
  
  <pre><code>private double amounts[] = { 0, 0.01, 1000000, 25, 250000, 75, 50, 1000,
              200, 100, 400000, 750, 5000, 750000, 500, 100000, 300, 75000, 800,
              20, 300000, 10, 50, 750, 25, 5, 1 };
  
  public void Shuffle(){
  
          Random rgen = new Random();
          for (int i=0; i &gt; amounts.length; i++) {
              int randomPosition = rgen.nextInt(amounts.length);
              double temp = amounts[i];
              amounts[i] = amounts[randomPosition];
              amounts[randomPosition] = temp;
      }
      }
  </code></pre>
  
  <p>the code that initiates it </p>
  
  <pre><code>public void casesSetup() {  
  
          for (int i = 0; i &lt; briefcase.length; i++) {
  
              if (i == 0) {
  
              } else {
                  briefcase[i] = new Briefcase();
                  double value = amounts[i];
                  briefcase[i].setAmount(value);
                  briefcase[i].setFace(i);
              }
          }
      }
  </code></pre>
  
  <p>my problem here is that they are not being randomized anyone has an idea why?</p>