custom-random

1.0.1 • Public • Published

安装 install

npm install custom-random

导入 require

// 01 导入random模块
const random = require('custom-random')

生成随机数

// 02 使用random.randomNum()方法取得随机数   注意:随机数的取值范围在两个参数之间
let num = random.randomNum(1,100)

开源协议

ISC

/custom-random/

    Package Sidebar

    Install

    npm i custom-random

    Weekly Downloads

    7

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.13 kB

    Total Files

    3

    Last publish

    Collaborators

    • kakarotte