title: Random labels in Tic Tac Toe simulation
body: <p>I am working on a Tic Tac Toe simulator for a class and have run into an issue.</p>
  
  <p>I created a 2-dimensional array to simulate the board and populate it with either 0 or 1 in all the boxes.</p>
  
  <p>The issue I am having is getting those numbers to apply to the labels I have created (a1, a2, a3, b1, b2, etcetera).</p>
  
  <p>Is there a way that my nested <code>for</code> loops can have each element in the array apply to a new label?  I can't seem to find anything in my book or online about this.</p>
  
  <p>Here is my related code:</p>
  
  <pre><code>private void newBTN_Click(object sender, EventArgs e)
  {
  
      Random rand = new Random();
      const int ROWS = 3;
      const int COLS = 3;
  
  
      int [,] board = new int[ROWS, COLS];
  
  
      for (int row = 0; row &lt; ROWS; row++)
      {
          for (int col = 0; col &lt; COLS; col++)
          {
              board[row, col] = rand.Next(1);
  
          }
      }
  
  }
  </code></pre>