Assuming that a Random object has been created called generator, what is the range of the result of each of the following expressions?

a. generator.nextInt(20)
b. generator.nextInt(8) + 1
c. generator.nextInt(45) + 10
d. generator.nextInt(100) – 50


a. 0 to 19, inclusive
b. 1 to 8, incluslive
c. 10 to 54, inclusive
d. -50 to 49, inclusive

Computer Science & Information Technology

You might also like to view...

Windows is __________ case sensitive.

a. not b. somewhat c. completely d. At the operating system level, case sensitivity depends on context.

Computer Science & Information Technology

Using multiple overlapping layers to secure data and resources is known as which of the following?

A. Principle of least privilege B. Separation of duties C. Defense in depth D. Security triad

Computer Science & Information Technology

____________________ is the process of transferring VLAN traffic between two or more switches.

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

Computer Science & Information Technology

You use the Dreamweaver ____ feature to package a mobile application for platforms such as Android and iOS.

A. Publish B. PhoneGap C. eMobile D. jQuery Runtime

Computer Science & Information Technology