I was just thinking and that idea came to my mind.
Let say I have hosts A and B inside my local area network. I have a Router, and a host C in the internet. I know that when initiating the connection, the source port is chosen randomly, but what happens if two hosts chose the same when initiating to the same host:port?
A:10123 -> C:80 B:10123 -> C:80
How would the router know which packets belongs to each one?