I don't know how it happens in international football but in my country (Portugal) we have football matches divided by journeys. What I want to do is to make random football macthes between all the teams in a championship.
Example: (4 teams)
TeamA,TeamB,TeamC,TeamD
1st journey
2nd journey
3rd journey
//below games are easy, we just need to swap teams.
4th journey
5th journey
6th journey
Rules
I tried doing this with javascript and php but the result was not as expected. I search the web for a problem similar to this one, but no luck.
Can someone help me? At least with a theory?