数学对象

    1. Math.max();
    2. Math.min();
    3. //三个取整的方法:
    4. Math.ceil() 上取整
    5. Math.floor() 下取整
    6. Math.round() 四舍五入取整
    7. Math.random() // 0<=num<1一个浮点型伪随机数字在0(包括0)和1(不包括1)之间
    8. 例 1-100
    9. Math.random()*100
    10. 0<=num<99.999
    11. Math.floor(Math.random()*100)
    12. 0<=num<=99;
    13. Math.floor(Math.random()*100)+1
    14. 1<=num<=100;
    15. 例
    16. var num = 12.66;
    17. console.log(Math.ceil(num))上取整
    18. console.log(Math.floor(num))下取整
    19. console.log(Math.round(num))四舍五入取整
    20. console.log(Math.random()) 取两个数之间的数