Math JavaScript Tutorial

Syntax

math.random(num)
The random() method of the Math object is used to obtain a random number between values 0 and 1.


    
    
    
    
    
    The random number is: