//返回多个数中的最大值
console.log(Math.max(1,2,3,4,5));//5
//返回多个数中的最小值
console.log(Math.min(1,2,3,4,5));//1
//向下取整
console.log(Math.floor(45.84334));//45
//向上取整
console.log(Math.ceil(5.4443));//6
//四舍五入
console.log(Math.round(67.55));//68
//随机数0-1
console.log(Math.random());//0-----1之间
//随机数1-10
console.log(parseInt(Math.random()*10+1));
//随机数1-100
console.log(parseInt(Math.random()*100+1));