One common use of the Math object is to create a random number: ... Math. random(). Math.random() returns a random number between 0 and 1: ...
www.w3schools.com