Comy - a sort of glorified dice-throwing

Introduction
Combinatorial algorithms are computational procedures which are designed to help solve combinatorial problems.
Install
$ npm install comy
Usage
const comy = require("comy");
const { priorityGroups } = require("comy");
const arr = [
{ name: "Michael", priority: 1 },
{ name: "Murphy", priority: 2 },
{ name: "Capone", priority: 3 },
{ name: "Donnie", priority: 1 },
{ name: "Koby", priority: 2 },
{ name: "Felis", priority: 3 }
];
console.log(priorityGroups(arr, 2, "priority"));
Methods
pickNumbers: (from: any, to: any, size: any) => any[]
pickRandom: (arr: any, n?: number) => any
pickHexColor: () => string
priorityGroups: (arr: any, numOfGroups: any, attr?: string) => any[][]
groups: (arr: any, numOfGroups: any) => any
generateString: () => string
