@jswork/next-random

1.0.2 • Public • Published

next-random

Create random number.

version license size download

installation

npm install -S @jswork/next-random

usage

import '@jswork/next-random';

// case1: get random
nx.random(1,100);   // 1 ~ 99


// case2: get a random list
nx.random(1,100, 20);
/*
[
  31, 33, 57, 42, 53, 34, 2,
  17, 63, 46, 96, 81, 68, 5,
  89, 73, 94, 58, 65, 41
]
*/

license

Code released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/next-random

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.68 kB

Total Files

5

Last publish

Collaborators

  • afeiship