What is the purpose of the Math.random() function in JavaScript?
Math.random()
Rounds a number to the nearest integer.
Generates a random integer.
Generates a random number between 0 and 1.
Returns the value of π (pi).