Random or not, the game has to have a "match engine" that has to simulate all kinds of results and factor in possession bonus, substitutions, form, morale, etc.