PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
random
var randInt = require('./randInt'); var isArray = require('../lang/isArray'); /** * Returns a random element from the supplied arguments * or from the array (if single argument is an array). */ function choice(items) { var target = (arguments.length === 1 && isArray(items))? items : arguments; return target[ randInt(0, target.length - 1) ]; } module.exports = choice;
[-] randBit.js
[edit]
[-] randString.js
[edit]
[-] randBool.js
[edit]
[+]
..
[-] randSign.js
[edit]
[-] random.js
[edit]
[-] randInt.js
[edit]
[-] randHex.js
[edit]
[-] rand.js
[edit]
[-] choice.js
[edit]
[-] guid.js
[edit]