A question im gonna ask now so I dont have to later

So basically, lets say theoretically (maybe for a flowjam, who knows) that I wanted to make a smash type game with online multiplayer. Lets say I wanted it so that it would find a random player and put you and that random player against each other, how would I do this

you should ask @grazer if random matchmaking is possible