Answer: The Random() function is an static method of Math class which returns a floating-point number between 0 and 1.It has no parameter defined.
Note: Every time Random function will produce new number when it is called.
Syntax:
Math.random()
Asked In: Many Interviews |
Alert Moderator