Skip to content
/ random.js Public

🎲 A deterministic random number generator for node

License

Notifications You must be signed in to change notification settings

bash/random.js

Repository files navigation

🎲 random.js

Build Status Build status Coverage Status Code Climate Standard - JavaScript Style Guide NPM gluten free

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.

About

🎲 A deterministic random number generator for node

Resources

License

Stars

Watchers

Forks

Packages

No packages published