1.1.1 • Published 3 years ago

randomn_int v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

It can be installed using - "npm i randomn_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("randomn_int")): i) getRandom() - By default if you call function like "getRandom()" which is withput 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 get a random number between num1 and num2 iii) getRandom(num) - By fetchinh only one argument, the function will return a random integer of "num" number of digits