Files
electron-egg/app/utils/index.js
2022-02-20 11:41:28 +08:00

8 lines
143 B
JavaScript

'use strict';
// 生成两数之间随机数
exports.randomNums = (min, max) => {
return Math.round(Math.random() * (max - min) + min);
};