title: Write a program which reads two non-negative integers 'x' and 'y' (where x < y) and then prints three random integers in the range x...y
body: <pre><code>import java.util.Scanner;
  import java.util.Random;
  
  public class Lab04b 
  {       
      public static void main(String []args)
      {    
          Random generator = new Random (); 
          Scanner scan = new Scanner(System.in);
  
          int num1;
          int num2;
          int num3;
  
          System.out.println("Enter X:");
          num1 = scan.nextInt();
  
          System.out.println("Enter Y:");
          num2 = scan.nextInt();
  
          num3 = generator.nextInt(num2) + num1;
          System.out.println("3 random integers in the range " + num1 + ".." + num2 + " are: " + num3);
      }
  }
  </code></pre>
  
  <p>I am stuck on how to get 3 random integers between the x and y range. Y being the biggest integer.</p>