3 ms·
If you want to assign people to groups randomly, why not just something like: import random import numpy people = [...] min_size = 3 random.shuffle
by blueicecubes 6y ago
If you want to assign people to groups randomly, why not just something like:
import random
import numpy
people = [...]
min_size = 3
random.shuffle(people)
groupings = numpy.array_split(people,len(people)//min_size)
- tobib 6y agoCorrecte if I'm wrong but the post was about determining the number of groups and their size, not actually assigning people to them.
- blueicecubes 6y agoThe article starts with "We've been experimenting with breaking up employees into random groups (of size 4)." How does stopping at a list of group sizes (numbers) help you do that?
- tobib 6y agoIdk but that's what the article did