Multiple Choice
Which statement creates a random value from the sequence 2, 5, 8, 11 and 14. Suppose randomNumbers is a SecureRandom object.
A) 2 + 5 * randomNumbers.nextInt(3) ;
B) 3 + 2 * randomNumbers.nextInt(5) ;
C) 5 + 3 * randomNumbers.nextInt(2) ;
D) 2 + 3 * randomNumbers.nextInt(5) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q14: A static method can _.<br>A) call only
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)
Q20: Which statement below could be used to
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