title: code doesnt work from unknown reason (no errors)
body: <p>so basically im a beginner programmer and im trying to build this very simple soduku generator with a brute force algorithm but for some reason it doesn't work, what it is supposed to do is i divided to board in to 9 cubes of 9 number like in the game and the software randomly sets values between 1-9 to the 2D array that is the board one by one all while checking that the value it sets isn't appearing again in the rows its in(like the rules of the game) and i made it so it is not possible that the same number appears in the same box of 9 numbers(like in the game) </p>
  
  <p>if anyone is experienced with code i would be really thankful if you helped a newbie out </p>
  
  <p>CODE :</p>
  
  <pre><code>    // package whatever; // don't place package name!
  
      import java.util.ArrayList;
      import java.util.Arrays;
  
      class random_board
      {
          public static void main (String[] args) throws java.lang.Exception
          {
            //  while (pass = false){
  
  
                  /*ArrayList&lt;Integer[]&gt; Random_Pick_List = new ArrayList&lt;&gt;();
           Random_Pick_List= [1;2;3;4;5;6;7;8;9];*/
              int[][] board = new int[9][9];
  
         int calum = 0;
       for(int r =0;r&lt;=2;r++) {    
        int line = 0;
        for (int q =0; q&lt;=2;q++) {   
             ArrayList&lt;Integer&gt; Random_Pick_List =
              new ArrayList&lt;Integer&gt;(Arrays.asList(1,2,3,4,5,6,7,8,9));
          int counter = 9;
          for (int i = 0 ; i&lt;=3;i++){
              for (int j = 0 ; j&lt;=3;j=j){
                  int n= floor(Math.random() * counter);
  
                  board[j+line][i+calum]= Random_Pick_List.get(n);
                  if (board[i][0] != n &amp;&amp; board[i][1] != n&amp;&amp; board[i][2] != n &amp;&amp; board[i][3] != n &amp;&amp; board[i][4] != n &amp;&amp; board[i][5] != n &amp;&amp; board[i][6] != n &amp;&amp; board[i][7] != n &amp;&amp; board[i][8] != n &amp;&amp; board[0][j] != n &amp;&amp; board[1][j] != n &amp;&amp; board[2][j] != n &amp;&amp; board[3][j] != n &amp;&amp; board[4][j] != n &amp;&amp; board[5][j] != n &amp;&amp; board[6][j] != n &amp;&amp; board[7][j] != n &amp;&amp; board[8][j] != n )  
                  j++;
                  counter--;
                  Random_Pick_List.remove(n);
  
              }
              }
          }
  
        line =line +3;
        }  
       calum=calum+3;
       //}
  
  
  
  
      //pass = board_check(board);
      //}
  
           for (int i =0;i&lt;=9;i++){
              for (int j =0;j&lt;=9;j++){
                     System.out.print(board[i][j] + " ");
          }
          System.out.println();
      }
  
       /* for (int i =0;i&lt;=9;i++){
              for (int j =0;j&lt;=9;j++){
      public boolean board_check(integer[][] board ) {
          for (int i =0;i&lt;=9;i++){
              for (int j =0;j&lt;=9;j++){
              int n = board[i][j];
              board[i][j]=10;
       if (board[i][0] != n &amp;&amp; board[i][1] != n&amp;&amp; board[i][2] != n &amp;&amp; board[i][3] != n &amp;&amp; board[i][4] != n &amp;&amp; board[i][5] != n &amp;&amp; board[i][6] != n &amp;&amp; board[i][7] != n &amp;&amp; board[i][8] != n &amp;&amp; board[0][j] != n &amp;&amp; board[1][j] != n &amp;&amp; board[2][j] != n &amp;&amp; board[3][j] != n &amp;&amp; board[4][j] != n &amp;&amp; board[5][j] != n &amp;&amp; board[6][j] != n &amp;&amp; board[7][j] != n &amp;&amp; board[8][j] != n )  
          boolean pass = true;
          }
         }
      return pass;
  
      }
      */
      }
  
          private static int floor(double d) {
              // TODO Auto-generated method stub
              return 0;
          }
      }
  </code></pre>