Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/randn
Another 🔢 Random Number Generator
https://github.com/abranhe/randn
number-generator rand random random-number
Last synced: about 1 month ago
JSON representation
Another 🔢 Random Number Generator
- Host: GitHub
- URL: https://github.com/abranhe/randn
- Owner: abranhe
- License: mit
- Created: 2018-07-31T16:34:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T01:32:00.000Z (over 6 years ago)
- Last Synced: 2024-10-06T04:41:14.396Z (about 2 months ago)
- Topics: number-generator, rand, random, random-number
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
randn
: 🔢 Random Number Generator# Why randn?
- Clean and focused
- [CLI](#cli) included
- Actively maintained
- Fast and reliable
- Easy to get numbers# Install
```
$ npm install randn
```# Usage
```js
const randn = require('randn');console.log(randn());
//=> 315764787997033782716506419531console.log(randn(5));
//=> 86773
```# API
**rand()**
> Return a number with default value of 30
Return Type: `string`
**rand(number)**
> Return an string with custom number
Return Type: `string`
# CLI
```
Examples
$ randn
315764787997033782716506419531$ randn --number 5
86773$ randn -n 23
46379458263283978267360Options
-n, --number Generate a number with certain length
```# Related
- [all-words](https://github.com/abranhe/all-words): Generate all available words (up to four letters) super fast.
- [r4nd0mstr1ng](https://github.com/abranhe/r4nd0mstr1ng): 🌀 Random string generator.# Team
|[![Carlos Abraham Logo](https://avatars3.githubusercontent.com/u/21347264?s=50&v=4)](https://19cah.com)|
| :-: |
| [Carlos Abraham](https://github.com/abranhe) |# License
[MIT](https://github.com/abranhe/randn/blob/master/LICENSE) License © [Carlos Abraham](https://github.com/abranhe/)