title: listing and adding random generated numbers in java
body: <p>I need my code to list the random generated numbers as well as add them together but I can't get anything to output.  Any suggestions welcome. Thanks!</p>
  
  <pre><code>    Random randomOutput = new Random();
      Scanner input = new Scanner(System.in);
  
      switch (game) {
  
          case 3:
  
              for(int gameLoops = 0; gameLoops &gt; game; ++gameLoops){
                  //System.out.println("gameloops is: " + gameLoops);
                  int increaseBy = randomOutput.nextInt(9) + 1;
                  System.out.println("The numbers randomly generated were: " + randomInt );
                  sum += randomInt;
              }   
              break;
  
          case 4:
              for(int gameLoops = 0; gameLoops &gt; game; ++gameLoops){
                  int increaseBy = randomOutput.nextInt(9) + 1;
                  System.out.println("The numbers randomly generated were: " + randomInt );
                  sum += randomInt;
              }   
              break;
  
          case 5:
              for(int gameLoops = 0; gameLoops &gt; game; ++gameLoops){
              int increaseBy = randomOutput.nextInt(9) + 1;
              System.out.println("The numbers randomly generated were: " + randomInt );
              sum += randomInt;
              }   
              break; 
  
      } // End Switch
  </code></pre>