0.0.4 • Published 6 years ago

randomized-group v0.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

randomized-group

Create randomized teams in a flash.

Usage

Call randomGroups with an array(names) and the number of groups you want to create n. This function returns an array of size n where each element is a random subset of names.

const groups = require('randomized-group')
const randomGroups = groups(['A','B','C','D','X','Y','Z'],3);
console.log(randomGroups)	
//[['B','D','X'],['A','Z'],['Y','C']] 
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago