Java Application To Generate X Random Values Computer Science Homework Help

URGENT – Please help with assignment.

Create your own simple Java application to generate X random Integer values between 0 and Y. Use command line arguments for entry of X and Y.
Demonstrate your code compiles and runs without issue using screen captures as appropriate.

Please include extensive comments throughout.

The code should be along the lines of…… but please be creative.

import java.util.Random;
public class Rando {
  public static void main(String[] args) {
  int x = Integer.parseInt(args[0]);
  int y = Integer.parseInt(args[1]);
  int z;
  Random randomObject = new Random();
  int count = 0;
  while(count < x) {
  z = randomObject.nextInt(y+1);
  System.out.println(z);
  count++;
  }
  }

}

Please let me know if you have any questions.

No matter what kind of paper writing service you need, we’ll get it written. Place Your Order Now!
× How can I help you?