Math.abs(x): The absolute value of the number that can be returned
Math.ceil(x): round up
Math.floor(x): round down
Math.max(x,y): Maximum value
Math.min(x,y): minimum value
Math.random(x): Random number
Math.round(x): rounded
Gets random numbers in the specified range
var x=Math.floor(Math.random()*(max-min+1))+min;
The above summary of common methods for JavaScript Math objects is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.