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:

Verified
Correct Answer:
Verified
Related Questions
Q15: Which of the following is not a
Q16: Which of the following can be an
Q17: Which of the following primitive types is
Q18: Overloaded methods always have the same _.<br>A)
Q19: Which statement creates a random value from
Q21: Math static method random generates a random
Q22: Information is passed to a method in
Q23: When an object is concatenated with a
Q24: Which of the following methods is not
Q25: Which of these statements best defines scope?<br>A)