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 public class DiceRoll { public static void main (String args) { All tests Scanner scor = new Scanner (System. in); passed 7 Random randGen = new Random( ); 8 int seedval; g 10 seedVal = scnr . nextInt(); 11 randGen . setSeed ( seedVal) ; 12 13 /* Your solution goes here $ / 14 15 16 } Run Feedback
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
