# @vinnieascripter/randomnum

> Generate a random number easily with this package.

Latest version **1.1.5** (published 2018-09-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install @vinnieascripter/randomnum
pnpm add @vinnieascripter/randomnum
yarn add @vinnieascripter/randomnum
bun add @vinnieascripter/randomnum
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2018-09-08 |
| First published | 2018-09-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vinnie X |
| Maintainers | vinnieascripter |
| Keywords | number, generate, random |

## Links

- npm: https://www.npmjs.com/package/@vinnieascripter/randomnum
- npm.io page: https://npm.io/package/@vinnieascripter/randomnum

## Dependencies (2)

- [tape](https://npm.io/package/tape.md) ^4.9.1
- [claire](https://npm.io/package/claire.md) ^0.4.1

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.1.5 (latest) — 2018-09-08
- 1.1.3 — 2018-09-08
- 1.1.2 — 2018-09-08
- 1.1.1 — 2018-09-08
- 1.1.0 — 2018-09-08
- 1.0.9 — 2018-09-08
- 1.0.8 — 2018-09-08
- 1.0.7 — 2018-09-08
- 1.0.6 — 2018-09-08
- 1.0.5 — 2018-09-08
- 1.0.4 — 2018-09-08
- 1.0.3 — 2018-09-08
- 1.0.2 — 2018-09-08
- 1.0.0 — 2018-09-08

## README

# RandomNumber

Generate a random number easily with this package.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

Here is one thing you need to install this package.

```
Node.js
```

### Installing

Want to use this package? Run the command line below to install this.

```
npm i @vinnieascripter/randomnum --save
```

And now it is installed!

## Tests

Here is tests of this package.

```
var rn = require('@vinnieascripter/randomnum');
var options = {
  min:  -1000
, max:  1000
, integer: true
}
rn(options) // example outputs → -187, 636
```

```
var rn = require('@vinnieascripter/randomnum');
var rn = require('');
var gen = rn.generator({
  min:  -1000
, max:  1000
, integer: true
})
gen() // example outputs → -350
```

```
var rn = require('@vinnieascripter/randomnum');
var rn = require('');
var gen = rn.generator({
  min:  -1000
, max:  1000
, integer: true
})
gen(500) // example outputs → 735
gen(500, null, false) // example outputs → 828.6001032683998
```

```
var rn = require('@vinnieascripter/randomnum');
var rn = require('');
var options = {
  min: 9874316514 // example input
}
rn(options) // example output → 9874316514.958157
```

```
var rn = require('@vinnieascripter/randomnum');
var rn = require('');
var options = {
  max: -9874316514 // example input , yes negative values do work
}
rn(options) // example output → -9874316514.075052
```

```
var rn = require('@vinnieascripter/randomnum');
var options = {
  integer: true
}
// this is basically a true/false random generator, with 50% chance to return true
rn(options) // example output → 1
```

```
var rn = require('@vinnieascripter/randomnum');
var options = {
  // example input , yes negative values do work
  min:  -10
, max: -1
}
rn(options) // example output → -2.47377512534149
```

```
// completely pointless, but whatever
var rn = require('@vinnieascripter/randomnum');
var options = {
  min:  1000
, integer: true
}
rn(options) // example output → 1001
options = {
  max:  1000
, integer: true
}
rn(options) // example output → 999
```

### Usuage

Here is a test of the usuage you could use with this package in your code.

```
var rn = require('@vinnieascripter/randomnum');
rn();
```

That logs a random number from 1 - 100.

## Deployment

Deploy how ever you want.

## Built With

* [NpmJS](http://npmjs.com) - Published on 


## Authors

* **Vinnie X** - *Coder* - [VinnieAScripter](https://github.com/VinnieAScripter)

---
_Source: https://npm.io/package/@vinnieascripter/randomnum · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
