I have a query to see if what I want to do is possible since I do not know if it can be done and how to do it if possible.
A client asks me for an app to manage a soccer league, where he automatically asks me for the app to perform the role of games between the registered teams, respecting the category of each team.
This means; There are 100 teams of different categories registered and, the application must segment by categories and among those teams of the same category choose at random the teams that will face each other throughout the different dates.
As an example in the following image
As shown in this category, do it with all the others.
For your support, thank you.