取整:
向下取整Math.floor(),向上取整Math.ceil(),四舍五入Math.round()),保留有效数位n.toFixed(),产生大于等于0小于1的随机数Math.random()向下取整Math.floor(),向上取整Math.ceil(),四舍五入Math
取整:
向下取整Math.floor(),向上取整Math.ceil(),四舍五入Math.round()),保留有效数位n.toFixed(),产生大于等于0小于1的随机数Math.random()向下取整Math.floor(),向上取整Math.ceil(),四舍五入Math