Solved

Which Statement Creates a Random Value from the Sequence 2

Question 19

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:

verifed

Verified

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

Related Questions