npm.io
1.0.0 • Published 8 years ago

bmjs-random

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

bmjs-random

A simple function to give you a random selection from input parameters.

Example usage:

const random = require('bmjs-random');

let randomString = random('foo','bar','baz');
console.log(randomString); // random selection from 'foo', 'bar', 'baz'

let randomNumber = random(1,2,3);
console.log(randomNumber); // random selection from 1,2,3

Keywords