Yes... Other than friended clubs its more or less random lol...
Another thing, I'd wish all previous top 4 teams in the same league at the end of the season go into the same CL competition in the next season. Man Utd, Man City, Chelsea and Arsenal don't get put into different CL competitions do they?