# probster

> Probability Manager

Latest version **1.0.6** (published 2020-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install probster
pnpm add probster
yarn add probster
bun add probster
```

## 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.0.6 |
| Published | 2020-09-18 |
| First published | 2020-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jin Jae Yeon |
| Maintainers | daramkun |
| Keywords | probability |

## Links

- npm: https://www.npmjs.com/package/probster
- npm.io page: https://npm.io/package/probster

## Recent versions

- 1.0.6 (latest) — 2020-09-18
- 1.0.5 — 2020-09-18
- 1.0.4 — 2020-09-18
- 1.0.3 — 2020-09-18
- 1.0.2 — 2020-09-18
- 1.0.1 — 2020-09-18
- 1.0.0 — 2020-09-18

## README

# Probster🦞
Get Random Value with Probability settings

# Usage
1. Install npm package
```
npm install probster
```

2. require from javascript source file
```
const Probster = require('probster');
```

3. Custom Probability?
```
const probs = [
    Probster.Probability(10, 'Ten percent probability'),
    Probster.Probability(20, 'Twenty percent probability'),
    Probster.Probability(30, 'Thirty percent probability'),
    Probster.Probability(40, 'Fourty percent probability'),
];
console.log(Probster.get_custom_probability_result(probs));
```

4. Equal Probability?
```
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
console.log(Probster.get_equal_probability_result(arr));
```

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