Solved

Which Statement Below Could Be Used to Simulate the Outputs

Question 20

Multiple Choice

Which statement below could be used to simulate the outputs of rolling a six-sided die? Suppose randomNumbers is a SecureRandom object.


A) 1 + randomNumbers.nextInt(6) ;
B) 1 + randomNumbers.nextInt(2) ;
C) 6 + randomNumbers.nextInt(1) ;
D) 3 + randomNumbers.nextInt(3) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions