0.0.4 • Published 13 years ago

rand v0.0.4

Weekly downloads
30
License
-
Repository
github
Last release
13 years ago

Stories in Ready Bitdeli Badge

rand

Random utilities for Node.js.

Usage

var rand = require('rand');

var n = rand.int(1, 10);
// n is an integer in range [1, 9]

var foo = [1, 2, 3];
var shuffled = rand.shuffled(foo);
// or in place:
rand.shuffle(foo);

Documentation

Check the source code. It's well documented.

0.0.4

13 years ago

0.0.3

13 years ago

0.0.2

13 years ago

0.0.1

13 years ago

0.0.0

13 years ago