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 of the following is true about backup sets?

A. backup sets are usually stored to the same media as the database log B. when the expiration date on a backup set passes, the data is no longer usable C. backups made to tape are preferable to using disks due to better performance D. a backup device references a physical location where backup sets are stored

Computer Science & Information Technology

Double-clicking a paragraph brings the paragraph text into a(n)  ____________________ mode.

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

Computer Science & Information Technology