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
Computer Science & Information Technology
You might also like to view...
An applet uses a method named ____ to build the GUI and register listeners for the components that generate events.
A. super() B. init() C. applet() D. set()
Computer Science & Information Technology
What are some of the advantages of open source software?
What will be an ideal response?
Computer Science & Information Technology