Home > random_groups_of

random_groups_of

Random_groups_of is a project mainly written in Ruby, it's free.

A method for breaking down one large array into smaller randomly organized arrays of size n

= Random Groups Of

A new method for the Ruby Array class for breaking down one large array into smaller randomly organized arrays of size 'number'

= How it's used

list.random_groups_of(4) => returns [[...],[...]...]

= Options

When the last left over group is "small" and no_small_groups was set to true then add the items from the last small group to the other groups.

Previous:SkeletonJelly