https://github.com/arshadkazmi42/nlen-num
Generate n length random number
https://github.com/arshadkazmi42/nlen-num
generate hacktoberfest length nodejs npm number random
Last synced: about 2 months ago
JSON representation
Generate n length random number
- Host: GitHub
- URL: https://github.com/arshadkazmi42/nlen-num
- Owner: arshadkazmi42
- License: mit
- Created: 2019-10-06T05:39:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-12T19:55:03.000Z (over 2 years ago)
- Last Synced: 2024-11-28T01:46:04.565Z (10 months ago)
- Topics: generate, hacktoberfest, length, nodejs, npm, number, random
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# nlen-num
[](https://github.com/arshadkazmi42/nlen-num/actions/workflows/nodejs.yml)
[](https://www.npmjs.com/package/nlen-num)
[](https://www.npmjs.com/package/nlen-num)
[](https://github.com/arshadkazmi42/nlen-num)
[](https://github.com/arshadkazmi42/nlen-num/blob/master/LICENSE)
[](https://github.com/arshadkazmi42/nlen-num/graphs/contributors)
[](https://github.com/arshadkazmi42/nlen-num/commits/master)Generate random number of n length.
## Install
```
npm i nlen-num
```## Usage
```javascript
const nLenNum = require("nlen-num");console.log(nLenNum(3));
console.log(nLenNum(4));
console.log(nLenNum());
console.log(nLenNum(0));// OUTPUT
// 132
// 4323
// 562
// 456
```> Note: Default length is 3, if there is no length input passed
## Contributing
Interested in contributing to this project?
You can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/nlen-num/issues/new)Read our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase