README
Advanced Random (NodeJS)
Release | Latest () | Pre () |
---|---|---|
GitHub | ||
NPM |
📝 Description
A NodeJS module to provide a better random method via crypto.
🌟 Feature
- Better random method without writing a lot of codes.
- Support type of big interger number.
📚 Documentation
For the official documentation, please visit GitHub Repository Wiki.
Getting Started (Excerpt)
Install
NodeJS (>= v14.15.0) + NPM (>= v6.14.8):
npm install @hugoalh/advanced-random
Use In CommonJS
const advancedRandom = require("@hugoalh/advanced-random");
Use In ModuleJS
import * as advancedRandom from "@hugoalh/advanced-random";
API (Excerpt)
Function
float(option?)
integer(option?)
pool(option?)
Example (Excerpt)
advancedRandom.float();
//=> 0.15963257458962
advancedRandom.integer();
//=> 45625874158745