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);

a. 1 + randomNumbers.nextInt(6);

Computer Science & Information Technology

You might also like to view...

Excel includes several tools to help you clean up data automatically

Indicate whether the statement is true or false

Computer Science & Information Technology

The Lempel-Ziv-Welch (LZW) algorithm is used in _____________ compression.?

A. ?lossy B. ?lossless C. ?vector quantization D. ?adaptive

Computer Science & Information Technology