random.js

A deterministic random number generator for node

AGPL-3.0 License

Downloads
4
Stars
4

🎲 random.js

A deterministic random number generator for node. This module has some important advantages over other modules:

  • Only 400 bytes in size (without gzip)!
  • O(1) complexity
  • 100% test coverage

Supported algorithms

Installation

npm i --save @rschmidmeister/random.js

Usage

const { fairDiceRoll, dilbertOracle } = require('@rschmidmeister/random.js')
console.log(fairDiceRoll())
console.log(dilbertOracle())

Roadmap

This project has a very ambitious roadmap for discovering and implementing new algorithms.

We are working hard to ship new algorithm by these dates. Note that these dates are estimates and are thus subject to change.

  • Q2 2040: Implement 2 new algorithms.
  • Q4 2050: Implement 5 additional algorithms.
  • Q1 2060: Rewrite this project in Rust.
  • Q3 2070: Delete both the project and its rewrite.
Package Rankings
Top 23.05% on Npmjs.org
Badges
Extracted from project README
Build Status Coverage Status Code Climate Standard - JavaScript Style Guide NPM
Related Projects