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...

A CheckBox is known as a __________ button because it can be “on” or “off.”

a) switch b) alternating c) state d) on/off

Computer Science & Information Technology

You use the chmod command on a script to change

A. its executable permission bit to true B. its file type to script

Computer Science & Information Technology

Specify an appropriate set of classes for the Student Registration System. Do this using ?rst UDTs of SQL:2003 and then the ODL language of ODMG.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is among the most difficult to recover?

A) Computer disks B) Hard drives C) Microfilm D) Paper

Computer Science & Information Technology