Which of the following statements generates a random number >= 2 and < 10.

A. Math.random()
B. Math.random(2, 10)
C. Math.random() * 10 + 2
D. Math.random() * 2 + 10
E. Math.random() * 8 + 2
F. Math.random() * 2 + 8


E. Math.random() * 8 + 2

Computer Science & Information Technology

You might also like to view...

Which is NOT a feature of security software?

A) Keystroke logging B) System and e-mail scans C) Parental controls D) Subscriptions

Computer Science & Information Technology

Every class must have a(n) ____________________, and can optionally contain data and methods.

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

Computer Science & Information Technology

Which of the following fire extinguisher types is used for wood and paper fires?

a. Class A b. Class B c. Class C d. Class D

Computer Science & Information Technology

Many people initially used the term, data processing, to refer to the functions of a DMS.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology