HatPicker
Node module for picking numbers out of a hat.
Installation
$ npm install hatpicker
Usage
// require the modulevar hatpicker = // example array of namesvar names = 'Bob, Joe, Kate, Sam, Sarah' // create a new hatpicker to pick out ofvar hat = names // map the names to a set of results: `hat.mapNums(hat.generateNums())
Sample output: Map { 'Bob' => 3, 'Joe' => 1, 'Kate' => 5, 'Sam' => 2, 'Sarah' => 4 }