@nichoth/array-random Get a random element from an array Install $ npm install @nichoth/array-random Example var randomEl = require('@nichoth/array-random'); var elmt = randomEl(['some', 'array', 'here']);