© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
24 replies
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
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Random Generator method
C#CC# / help
2y ago
Random Name generator.
C#CC# / help
3y ago
✅ Random character generator
C#CC# / help
4y ago