0.2.1 • Published 10 years ago

jqb-random v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

jqb-random

Randomization library.

var random = require('jqb-random');

Run Tests

If you want to run tests on this module you can prompt:

npm install && grunt

Methods

random.integer()

// random integer form 0 to 10
random.integer(10);

// random integer from 10 to 20
random.integer(10, 20);

random.item()

// random array item
random.item(['apple','google','microsoft']);

// random letter from a string
random.item('a string');
0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago