# rando-js

> Randomization utilities for NodeJS in es6

Latest version **0.2.0** (published 2018-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install rando-js
pnpm add rando-js
yarn add rando-js
bun add rando-js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2018-11-23 |
| First published | 2017-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sean O'Donohue |
| Maintainers | seanohue |
| Keywords | random, rng, randomization, array, dice, node |

## Links

- npm: https://www.npmjs.com/package/rando-js
- Repository: https://github.com/seanohue/rando
- Homepage: https://github.com/seanohue/rando#readme
- Issues: https://github.com/seanohue/rando/issues
- npm.io page: https://npm.io/package/rando-js

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2018-11-23
- 0.1.1 — 2017-02-01
- 0.1.0 — 2017-01-27

## README

A file with utility methods for introducing randomness.

Install with `npm install rando-js --save`.

Use cases:

```javascript
const Random = require('rando-js');

// Simulate a coinflip
if (Random.coinflip()) { /* something that has ~50% chance of happening */ }

// Roll a stat for your D&D character
const charisma = Random.roll(3, 6) // anything from 3 to 18
const d20 = Random.roll() // default args are 1, 20.

// Get something from an array
const choice = Random.fromArray([a, b, c, d]) // a, b, c, or d

// Get a random number in a range
const under20 = Random.inRange(0, 20)

```

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