title: Java: create array with random int's (int's can only be used once)
body: <p>I have an array called <code>arr</code>, with place for 15 elements.
  I need to place the numbers 1 through 15 in a random order into that array.
  Here is what I have tried:</p>
  
  <pre><code>int[] arr = new int[15];
  int i,j,k,n;
  
  for (i = 0; i&lt;15; i++) {
      for (j=0; j&lt;15; j++) {
          n = (int)(Math.random() * 14 + 1);
          if (rij[j] != n) {
              rij[i] = n;
              break;
          }
      }
  }
  </code></pre>
  
  <p>Thanks! :)</p>