Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 538 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 538 Bytes

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.