The Math.random() method is used to return a random number between 0 and 1.