What function would you use to generate a random number to simulate the roll of a six-sided die? 

A. nextBooleanInRange(1, 6)
B. nextIntegerFromAToBExclusive(1, 6)
C. nextIntegerInRange(1, 6)
D. nextIntegerFromAToBInclusive(1, 6)


Answer: D

Computer Science & Information Technology

You might also like to view...

Which of the following is an example of code injection?

a. CSS b. XSS c. DoS d. MITM

Computer Science & Information Technology

Programs that can run from a flash drive are known as ________

a. open source software b. portable apps c. SaaS d. suites

Computer Science & Information Technology

If the same text or graphic is used frequently, you can store the text or graphic as a(n) ____________________ and then insert the stored entry in the open document, as well as in future documents.

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

Computer Science & Information Technology

Users can change the look of an existing table through the Style gallery located on the ________ tab

Fill in the blank(s) with correct word

Computer Science & Information Technology