title: My Random Number Generator is Not Outputting Correctly
body: <p>I have tried to get this to print out 2 and 2 on separate lines. The separate lines part I've got down but for some reason the numbers this thing is outputting is 2 then 3. This is for an assignment for one of my chapters and getting a group together for help is challenging because of my work schedule. Can anyone help me to understand what is going on here? NOTE: seedVal starts at 4.</p>
  
  <blockquote>
    <p>type two statements using nextInt() to print two random integers
    between 0 and 9. End with a newline. Ex: </p>
    
    <p>5</p>
    
    <p>7</p>
    
    <p>Note: For this activity, using one statement may yield different
    output (due to the compiler calling nextInt() in a different order).
    Use two statements for this activity.</p>
  </blockquote>
  
  <pre><code>import java.util.Scanner;
  import java.util.Random;
  
  public class DiceRoll {
      public static void main (String [] args) {
          Random randGen = new Random();
          int seedVal = 0;
          randGen.setSeed(seedVal);
  
          System.out.println(randGen.nextInt(seedVal));
  
          System.out.println(randGen.nextInt(seedVal));
  
          return;
     }
  }
  </code></pre>