What is the use of Random method in Javascript?

 Posted by Rajesh_Kumar on 2/17/2014 | Category: JavaScript Interview questions | Views: 2873 | Points: 40
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 

Comments or Responses

Login to post response