# make-numbers

> Random Variate generation library

Latest version **1.12.0** (published 2020-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-numbers
pnpm add make-numbers
yarn add make-numbers
bun add make-numbers
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.12.0 |
| Published | 2020-11-29 |
| First published | 2020-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 10.18 |
| Dependencies | 3 |
| Unpacked size | 66 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | RJChow |
| Maintainers | rjchow |
| Keywords | generator-nod |

## Links

- npm: https://www.npmjs.com/package/make-numbers
- Repository: https://github.com/rjchow/make-numbers
- Homepage: https://github.com/rjchow/make-numbers#readme
- Issues: https://github.com/rjchow/make-numbers/issues
- npm.io page: https://npm.io/package/make-numbers

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) 4.2.0
- [jstat](https://npm.io/package/jstat.md) 1.9.4
- [seedrandom](https://npm.io/package/seedrandom.md) 3.0.5

## Recent versions

- 1.12.0 (latest) — 2020-11-29
- 1.11.0 — 2020-11-29
- 1.10.0 — 2020-11-22
- 1.9.0 — 2020-11-22
- 1.8.0 — 2020-11-22
- 1.7.0 — 2020-11-22
- 1.6.0 — 2020-11-22
- 1.5.0 — 2020-11-16
- 1.4.0 — 2020-11-16
- 1.3.0 — 2020-11-16
- 1.2.0 — 2020-10-27
- 1.1.0 — 2020-10-21
- 1.0.0 — 2020-10-21

## README

# Make Numbers

This is a simplistic random variate generator library written in Typescript and compiled to Javascript for distribution.
The latest version is always available at <https://www.npmjs.com/package/make-numbers>.

## Install

To install the library, first ensure that you have Npm set up, then simply run

```sh
npm install make-numbers
```

You can import the library into your project using:

```js
const numbers = require('make-numbers')

const normalRV = numbers.normal(mean, stdev)
```

## Configuration

The library exports a `setSeed()` method which allows you to set the seed of the pseudorandom number generator before conducting your experiments.
This allows you to create repeatable experiments by generating a sequence of random numbers repeatably.

## Distributions

#### Normal

```js
const normalRV = numbers.normal(mean, stdev)
```

#### Triangular

```js
const triangularRV = numbers.triangular(mode, left, right)
```

#### Erlang

```js
const erlangRV = numbers.erlang(n, shape)
```

#### Exponential

```js
const exponentialRV = numbers.exponential(lambda)
```

#### Weibull

```js
const weibullRV = numbers.weibull(lambda, shape)
```

#### Geometric

```js
const geometricRV = numbers.geometric(probabilityOfSuccess)
```

#### Negative Binomial

```js
const negbinRV = numbers.negbin(numberOfFailures, probabilityOfSuccess)
```

#### Poisson

```js
const poissonRV = numbers.poisson(lambda)
```

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

## License

MIT

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