Make Numbers
This is a simplistic random variate generator library written in Typescript and compiled to Javascript for distribution. The latest version is always available at https://www.npmjs.com/package/make-numbers.
Install
To install the library, first ensure that you have Npm set up, then simply run
npm install make-numbers
You can import the library into your project using:
const numbers = const normalRV = numbers
Configuration
The library exports a setSeed()
method which allows you to set the seed of the pseudorandom number generator before conducting your experiments.
This allows you to create repeatable experiments by generating a sequence of random numbers repeatably.
Distributions
Normal
const normalRV = numbers
Triangular
const triangularRV = numbers
Erlang
const erlangRV = numbers
Exponential
const exponentialRV = numbers
Weibull
const weibullRV = numbers
Geometric
const geometricRV = numbers
Negative Binomial
const negbinRV = numbers
Poisson
const poissonRV = numbers
API
Table of Contents
License
MIT