Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/randplus/0to1
- Owner: randplus
- Created: 2024-08-29T11:43:52.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T00:16:59.000Z (19 days ago)
- Last Synced: 2024-10-20T11:35:51.707Z (17 days ago)
- Topics: 0, 1, nodejs, npm, package, random
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@randplus/0to1
- Size: 3.91 KB
- Stars: 1
- 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)'.## 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.
```