diff --git a/README.md b/README.md index 1caafe6..02fbba6 100644 --- a/README.md +++ b/README.md @@ -8,28 +8,30 @@ Algorithm reference: [http://ftp.arl.mil/random/random.pdf](http://ftp.arl.mil/r ## Installation - - npm install random-distrib.js +```bash +npm install random-distrib.js +``` ## Example ### Browsers +```html + - - - + - + +``` ### Node - - var random = require('/path/to/random'); - var newPoint = random.normal(0, 1); +```javascript +var random = require('/path/to/random'); +var newPoint = random.normal(0, 1); +``` ## Probability Distribution Functions ### Continuous Distributions - arcsine(min, max); beta(v, w, min, max); @@ -85,7 +87,6 @@ userSpecified(usf, xMin, xMax, yMin, yMax); weibull(a, b, c); ### Discrete Distributions - bernoulli(p); binomial(n, p);