News for hackers. Stuff that matters.
Re:Creating Serendipity with Python by blueicecubes on Saturday February 27, 2021 @03:45PM (#26287991)
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)
Re:Creating Serendipity with Python by tobib on Saturday February 27, 2021 @10:54PM (#26290537)
Correcte if I'm wrong but the post was about determining the number of groups and their size, not actually assigning people to them.
Re:Creating Serendipity with Python by blueicecubes on Saturday February 27, 2021 @11:36PM (#26290712)
The 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?
Re:Creating Serendipity with Python by tobib on Monday March 01, 2021 @01:28PM (#26306149)
Idk but that's what the article did