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: 4 months ago
JSON representation
A package that adds functions for random.
- Host: GitHub
- URL: https://github.com/randplus/0to1
- Owner: randplus
- Created: 2024-08-29T11:43:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-01T14:46:43.000Z (10 months ago)
- Last Synced: 2025-09-16T15:14:06.649Z (9 months ago)
- Topics: 0, 1, nodejs, npm, package, random
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@randplus/0to1
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)'.
###### Teams

## 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.
```