node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป

pick

pick - A simple library for picking random elements of arrays

REQUIREMENTS

EXAMPLE

$ node
> var pick = require("pick");
> pick.pick([1, 2, 3]);
1