Question: Type two statements using nextint() to print two random integers between (and including) 0 and 9. End with a newline. Ex: Note: For this activity,

Type two statements using nextint() to print two random integers between (and including) 0 and 9. End with a newline. Ex: Note: For this activity, using one statement may yield different output (due to the interpreter calling randGen.nextInt() in a different order). Use two statements for this activity. (Notes) See How to Use zyBooks for info on how our automated program grader works. 475854.2014200.qx3zqy7 1 import java. util. Scanner; import java. util. Random; 1 test passed 4 public class DiceRoll { public static void main(String args) { All tests Scanner scor = new Scanner (System. in); passed Random randGen = new Random( ); 8 int seedval; seedVal = scnr . nextInt( ); 11 randGen. setSeed (seedval) ; 12 13 V* Your solution goes here */ 14 15 16 } Run No solution code provided X Testing with seedVal = 4 Your output Your program produced no output Expected output X Testing with seedVal = 55 Your output Your program produced no output in Expected output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
