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...

When you select the ________ paste option, data in rows are pasted as columns

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) _____________ is a collection of hardware and operating systems used to create new virtual machines.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology