1.1.3 • Published 3 years ago

randoms_int v1.1.3

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

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