@sundawning/get-random-int

1.0.0 • Public • Published

生成 min 和 max 之间的随机整数

2022-06-05 19:38:58

安装

pnpm add @sundawning/get-random-int

使用

const log = require("@sundawning/console-log-timestamp");
const get_random_int = require("@sundawning/get-random-int");
log(get_random_int({ min: 10 }));
log(get_random_int({ max: 100 }));
log(get_random_int({ min: 20, max: 100 }));
[2022/6/5 19:41:33] 10
[2022/6/5 19:41:33] 50
[2022/6/5 19:41:33] 95

Readme

Keywords

Package Sidebar

Install

npm i @sundawning/get-random-int

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

1.81 kB

Total Files

4

Last publish

Collaborators

  • sundawning