UNPKG

simple-utils-js

Version:

前端,前端开发,前端框架,web前端,前端面试题,技术文档,学习,面试,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown

10 lines (7 loc) 204 B
/** * @description: 指定范围的随机整数 * @param {*} number * @return {*} */ const random = (min = 0, max = 10)=> Math.floor(Math.random() * (max - min + 1)) + min module.exports = random