1. Math.max() 取最大值
    2. Math.min() 取最小值
    3. Math.ceil() 向上取整
    4. Math.floor() 向下取整
    5. Math.round() 四舍五入
    6. Math.random() 随机数
    1. var num = 12.66;
    2. console.log(Math.ceil(num)) // 13
    3. console.log(Math.floor(num)); // 12
    4. console.log(Math.round(num)); // 13
    5. console.log(Math.random());
    1. // 产生一个1-100的随机数
    2. Math.random()*100
    3. 0<=num<99.99
    4. Math.floor(Math.random()*100)
    5. 0<=num<99
    6. Math.floor(Math.random()*100)+1
    7. const nodeId = Math.ceil((Math.random() * (100)))
    8. 1<=num<100