Solved

Which Statement Below Could Be Used to Simulate the Outputs

Question 23

Multiple Choice

Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.


A) randomNumbers.nextInt(7) ;
B) randomNumbers.nextInt(2) ;
C) randomNumbers.nextInt(1) ;
D) randomNumbers.nextInt(25) ;

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents