I I want to create a round-robin program to generate agendas for my events. Please find all the information and rules below. Each team should only appear once in each activity column throughout the rounds. This means that no team should repeat an activity across rounds. In other words, each team should play in each activity exactly once, and no team should appear more than once in any given activity. The key here is to rotate both teams and activities in such a way that no team appears more than once in each activity column.
Here’s the updated approach:


 Number of Teams and Activities:
• We will assume the number of teams (T) is always a multiple of the number of activities (A), as previously mentioned.
• Each team will participate in every activity exactly once.
• For example, if there are 10 teams and 5 activities, we will need 5 rounds.
2.Rotation of Teams and Activities:
• Teams will be systematically rotated between activities.
• Each team will be paired with a different team in each round, while ensuring that no team repeats an activity.

• After each round, rotate the teams across activities, ensuring that no team plays in the same activity twice.
3. Adjust Pairings:
• Pair the teams randomly within each activity in each round, ensuring that matchups are not repeated as much as possible (soft rule).
4. Initial Shuffle:
• The teams are shuffled at the start to ensure randomization.
5. Assign Teams to Activities:
• For each round, teams are assigned to different activities, ensuring that no team repeats an activity. The rotation guarantees that each team appears only once per activity.
6. Rotation:
• After each round, the teams are rotated to ensure they move between activities. This guarantees that each team plays in every activity exactly once.


 Random Pairings: Teams are paired randomly in each round, and the rotations ensure that no team plays in the same activity more than once.

 No team repeats an activity across rounds.

All teams participate in all activities exactly once.

Matchups are randomized as much as possible, with minimal repeat pairings.
Do you see, its like a Sudoku game? There should be no repetition of teams in the activity columns or the round rows. In each column, there should be numbers of teams from 1 to 10 without repetition, and the same goes for each round row.  here is a sample of acurate shedule                                                                                                                                                                                                                                                                                                                                                                                                                                               
 Activity         A                B                C                D                 E
Round 1 T5 vs. T6 T4 vs. T7 T3 vs. T8 T2 vs. T9 T1 vs. T10
Round 2 T9 vs. T10 T6 vs. T8 T7 vs. T5 T1 vs. T3 T2 vs. T4
round 3 T3 vs. T7 T2 vs. T10 T1 vs. T6 T4 vs. T5 T8 vs. T9
round 4 T1 vs. T4 T5 vs. T9 T2 vs. T10 T6 vs. T8 T3 vs. T7
round 5 T2 vs. T8 T1 vs. T3 T4 vs. T9 T7 vs. T10 T5 vs. T6   i want to create a code to create this.