title: Generating Unique Random Numbers in an Array using Loop
body: <p>So the question is to develop a [5][5] table, each containing unique numbers from 1-100 (<em>no duplicates</em>)</p>
  
  <p>so here's what I came up with:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;time.h&gt;
  
  int main()
  {
      int outerLoop;
      int innerLoop;
  
      int board[5][5]; /* Array Name And Size*/
  
  /* seeds the random number generator*/
  
  srand(time(NULL));
  
  int number;
  
  number = rand() % 101;
  
  /* Start a loop to generate a random integer between 1 and 100 and 
  assign it into the array. The loop runs 25 times*/
  
  for (  outerLoop = 0  ;  outerLoop &lt;= 25  ; outerLoop++ ) /* loop 25 times*/
  {
      for (  innerLoop = 0  ;  innerLoop &lt;= 4  ; innerLoop++   ) /* &lt;=4 due to 5
  columns*/
      {
          board[outerLoop][innerLoop] = rand() % 100 + 1;
      }
      printf( "%d \n", board[outerLoop][innerLoop] );
  }
  </code></pre>
  
  <p>So I pretty much got stuck here.I'm not really sure about this:</p>
  
  <pre><code>board[outerLoop][innerLoop] = rand() % 100 + 1;
  </code></pre>
  
  <p>I simply made it up :/ Any idea guys?</p>