randoms_int

1.1.3 • Public • Published

It can be installed using - "npm i randoms_int"

The package allows you to get random integers, it is a function so can be directly used

It can be used in three ways, suppose you imported it with the name "getRandom" (const getRandom = require("randoms_int")):

i) getRandom() -
By default if you call the function like "getRandom()" which is without any arguments it will return a random 10 digit integer

ii) getRandom(num1, num2) -
You can also call it with two arguments defining the range of the random integer you want like "getRandom(num1, num2)" which will return a random number between num1 and num2

iii) getRandom(n) -
By fetching only one argument, the function will return a random integer of "n" number of digits

Package Sidebar

Install

npm i randoms_int

Weekly Downloads

2

Version

1.1.3

License

MIT

Unpacked Size

2.42 kB

Total Files

3

Last publish

Collaborators

  • priyanshuveb