C#C
C#3y ago
malkav

❔ ✅ Semi-Random-Generator

So I'm trying to generate a list for scheduling people to a task.
What I intend is to generate the list in such a way that each person is combined with one other person and gets either one of three tasks,
I want the people to be combined with another in such a way that for a complete iteration of the people, everyone gets paired with another person once and they get each of the three tasks in a repeating order.
Group 1: PersonA + PersonB => Task_1 || Person C + PersonD => Task_2 || PersonE => Task_3
Next iteration it should be a version of this where no person is paired with the same person twice, untill all persons have had all three tasks once. Then repeat the gesture

yes there are only 5 people to choose from and three tasks. That is a fixed amount

Help?
Was this page helpful?