@hugoalh/advanced-random

A module to provide a better random method via crypto.

Usage no npm install needed!

<script type="module">
  import hugoalhAdvancedRandom from 'https://cdn.skypack.dev/@hugoalh/advanced-random';
</script>

README

Advanced Random (NodeJS)

AdvancedRandom.NodeJS GitHub Contributors GitHub Issues GitHub Pull Requests GitHub Discussions GitHub Stars GitHub Forks GitHub Languages CodeFactor Grade LGTM Alerts LGTM Grade License

Release Latest (GitHub Latest Release Date) Pre (GitHub Latest Pre-Release Date)
GitHub GitHub Total Downloads GitHub Latest Release Version GitHub Latest Pre-Release Version
NPM NPM Total Downloads NPM Latest Release Version NPM Latest Pre-Release Version

📝 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