1.0.1 • Published 11 months ago

@agonxgashi/luckyjs v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

LuckyJs

A lightweight JavaScript library to generate a random boolean value

Installation

You can install the library via npm

npm install @agonxgashi/luckyjs

Usage

const lucky = require('@agonxgashi/luckyjs');

const bool = lucky(); // Returns either true or false randomly
console.log(bool);

API

lucky(probability) - Returns a random boolean value (true or false). Probability is optional and can be a numeric value from 0 to 100. If not provided. default is value is 50.

1.0.1

11 months ago

1.0.0

11 months ago