Skip to content

Latest commit

 

History

History
executable file
·
9 lines (7 loc) · 1008 Bytes

File metadata and controls

executable file
·
9 lines (7 loc) · 1008 Bytes

What does the function Math.random() return? <<

( ) An integer between 0 and 1, both inclusive {{Incorrect because Math.random() returns a floating-point, random number between 0 and 1 (inclusive of 0, but not 1).}} ( ) A floating-point number between 0 and 1, both inclusive {{Incorrect because Math.random() returns a floating-point, random number between 0 and 1. (inclusive of 0, but not 1)}} (x) A floating-point number between 0 and 1, where 0 is inclusive and 1 is exclusive {{Correct because Math.random() returns a floating-point number between 0 and 1 (0 inclusive, 1 exclusive).}} ( ) An integer between 0 and 100 {{Incorrect because Math.random() returns a floating-point, random number between 0 and 1 (inclusive of 0, but not 1).}} ( ) A floating-point number between 0 and 1, both exclusive {{Incorrect because Math.random() returns a floating-point, random number between 0 and 1 (inclusive of 0, but not 1.)}}

||The Math.random() method does not return an integer value. ||