|
|
@ -107,9 +107,8 @@ export default { |
|
|
|
let temp = [] |
|
|
|
resultStr += `<第${i + 1}组/Group ${i + 1}>\n ` |
|
|
|
for (let j = 0; j < this.form.geshu; j++) { |
|
|
|
let zhengshu = _.random(this.form.min, this.form.max) |
|
|
|
let xiaoshu = _.random(0, Math.pow(10, this.form.weishu)) |
|
|
|
let num = Number(`${zhengshu}.${xiaoshu}`).toFixed(this.form.weishu) |
|
|
|
let zhengshu = Math.random() * (this.form.max - this.form.min) + this.form.min |
|
|
|
let num = zhengshu.toFixed(this.form.weishu) |
|
|
|
temp.push(num) |
|
|
|
resultStr += `${num}\n ` |
|
|
|
} |
|
|
|