gauss-random

1.0.1 • Public • Published

gauss-random

Samples the standard normal distribution, with 0 mean and unit standard deviation.

Example

var nrand = require('gauss-random')
 
for(var i=0; i<10; ++i) {
  console.log(nrand())
}

Install

npm install gauss-random

API

require('gauss-random')()

Generates a random number from the Guassian distribution.

Returns A random variable from the unit gaussian distribution

Credits

(c) 2014 Mikola Lysenko. MIT

Package Sidebar

Install

npm i gauss-random

Weekly Downloads

8

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mikolalysenko
  • jaspervdg
  • hughsk
  • planeshifter
  • rreusser