// 随机生成六位数
function getRandomSixNum() {
let RandomSixStr = ''
for(let i = 0;i < 6; i++) {
RandomSixStr += String(Math.floor(Math.random()*10))
}
return RandomSixStr
},
Math.random() //生成0-1随机数
Math.round() //四舍五入
Math.ceil() //向上取整
Math.floor() //向下取整
Math.abs() //取绝对值
Math.sin(x) //x的正弦值,返回值在 -1.0 到 1.0 之间
Math.cos(x) //x的余弦值,返回的是 -1.0 到 1.0 之间的数
parseInt() //丢弃小数部分,保留整数部分
parseFloat() //转为数字