title: Error: called object type int is not a function or function pointer
body: <p>I get this error in my C code:</p>
  
  <pre><code>error:called object type int is not a function or function pointer
  </code></pre>
  
  <p>I have looked all over for an answer and everywhere I have checked confirms this code should be working, so what am I missing? I want to assign random numbers to two different variables. I've commented off the errors I'm getting in my IDE. (Note: this isnt the full code, just the relevant section)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;time.h&gt;
  
  int main(void){
  
  int k, seed, mines, row, column, boom;
  int board[9][10];
  printf("Please enter your seed: ");
  scanf("%d", &amp;seed); getchar();
  srand(seed);
  for(k = 1; k &lt;= mines; k++) {
      row = rand() % 8;                 //error:called object type int is not a function or function pointer
      column = rand() % 8;              //error:called object type int is not a function or function pointer
      if(board[row][column] == 0) {
          board[row][column] = boom;
  
      }
  }
  }
  </code></pre>