Various pseudo-random implementations packaged with helpful random utilities
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config/packages
docs
lib
packages
src
test
.gitignore
.neat
.npmignore
.travis.yml
Cakefile
Nemfile
README.md
loader.html
package.json

README.md

Build Status

Various pseudo-random implementations packaged with helpful random utilities.

Installation And Usage

Node

Install chancejs with:

npm install chancejs

And then use it like that:

var chancejs = require('chancejs');

var seed = new chancejs.LaggedFibonnacci(123);
var random = new chancejs.Random(seed);

random.get();

Browser

Link the javascript:

<script src='chancejs.js' type='text/javascript'></script>

And then use it like that:

var seed = new chancejs.LaggedFibonnacci(123);
var random = new chancejs.Random(seed);

random.get()