# @issos1993/flow-random

> A library that help to flow control by a random number

Latest version **1.1.7** (published 2025-07-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @issos1993/flow-random
pnpm add @issos1993/flow-random
yarn add @issos1993/flow-random
bun add @issos1993/flow-random
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2025-07-16 |
| First published | 2023-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lucas Barbosa |
| Maintainers | issos1993 |
| Keywords | random, flow, javascript, probability |

## Links

- npm: https://www.npmjs.com/package/@issos1993/flow-random
- Repository: https://github.com/barbosalucas278/flow-random-js
- Homepage: https://github.com/barbosalucas278/flow-random-js#readme
- Issues: https://github.com/barbosalucas278/flow-random-js/issues
- npm.io page: https://npm.io/package/@issos1993/flow-random

## Recent versions

- 1.1.7 (latest) — 2025-07-16
- 1.1.6 — 2025-07-15
- 1.1.5 — 2024-01-13
- 1.1.4 — 2024-01-13
- 1.1.3 — 2024-01-13
- 1.1.2 — 2024-01-12
- 1.1.1 — 2024-01-12
- 1.1.0 — 2024-01-12
- 1.0.2 — 2023-12-29
- 1.0.1 — 2023-12-29
- 1.0.0 — 2023-12-18

## README

# flow-random-js

flow-random-js is a library for generating random flows based on probabilities.

## Installation

To install flow-random-js into your project, you can use npm:

```bash
npm install flow-random
```

## Usage

```javascript
import { flowRandom } from 'flow-random';

// Generate a random flow with a custom probability (optional, default is 100)
const resultado = flowRandom(); // Returns `true` or `false` based on probability
console.log(resultado); // Result of the random flow
```
## Params

probability (optional): An integer representing the probability for the flow to be true. Default is 100.

## Example

```javascript
// Generate a random flow with a 75% probability
const resultado = flowRandom(75); // Returns `true` or `false` based on probability
console.log(resultado); // Result of the random flow
```

## Contributing

Feel free to contribute to this library! If you have suggestions, issues, or enhancements, please open an issue or a pull request.

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

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