title: non static method cannot be referenced from a static context
body: <p>First some code:    </p>
  
  <pre><code>import java.util.*;
  //...
  
  class TicTacToe 
  {
  //...
  
  public static void main (String[]arg) 
  { 
  
      Random Random = new Random() ; 
      toerunner () ; // this leads to a path of 
                     // methods that eventualy gets us to the rest of the code 
  } 
  //... 
  
  public void CompTurn (int type, boolean debug) 
  { 
  //...
  
          boolean done = true ; 
          int a = 0 ; 
          while (!done) 
          { 
              a = Random.nextInt(10) ;
              if (debug) { int i = 0 ; while (i&lt;20) { System.out.print (a+", ") ; i++; }} 
              if (possibles[a]==1) done = true ; 
          } 
          this.board[a] = 2 ; 
  
  
  }
  //...
  
  } //to close the class 
  </code></pre>
  
  <p>Here is the error message: </p>
  
  <pre><code>TicTacToe.java:85: non-static method nextInt(int) cannot be referenced from a static context
              a = Random.nextInt(10) ;
                        ^
  </code></pre>
  
  <p>What exactly went wrong? What does that error message "non static method cannot be referenced from a  static context" mean? </p>