Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/randplus/0to1

A package that adds functions for random.
https://github.com/randplus/0to1

0 1 nodejs npm package random

Last synced: about 10 hours ago
JSON representation

A package that adds functions for random.

Awesome Lists containing this project

README

        

# @randplus/0to1
In theory, the random functions in this package can also output 1.

This package is included in '[randplus](https://www.npmjs.com/package/randplus)'.

## Usage
```js
const random = require('@randplus/0to1');

console.log(random.versions); // ['v1', 'v2']
console.log(random()) // Use latest random function.
console.log(random(1)); // Use v1 random function.
console.log(random('1')); // Use v1 random function.
console.log(random('v1')); // Use v1 random function.
```

## Get Support
Discord Banner