getRandomInt 通过指定区间来获取随机数 安装 npm install getRandomInt 用法 var getRandomInt = require('getRandomInt') getRandomInt(5, 1) //2 or 3 or 4 测试 npm test