An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# nlen-num

[![Build](https://github.com/arshadkazmi42/nlen-num/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/nlen-num/actions/workflows/nodejs.yml)
[![NPM Version](https://img.shields.io/npm/v/nlen-num.svg)](https://www.npmjs.com/package/nlen-num)
[![NPM Downloads](https://img.shields.io/npm/dt/nlen-num.svg)](https://www.npmjs.com/package/nlen-num)
[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/nlen-num.svg)](https://github.com/arshadkazmi42/nlen-num)
[![LICENSE](https://img.shields.io/npm/l/nlen-num.svg)](https://github.com/arshadkazmi42/nlen-num/blob/master/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/nlen-num.svg)](https://github.com/arshadkazmi42/nlen-num/graphs/contributors)
[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/nlen-num.svg)](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