Routers typically use a hash of source and destination port, source and destination IP address, and sometimes ingress port id to pick which of N equal paths to take.
...and sometimes even the TTL, as evidenced by this recent news item: https://news.ycombinator.com/item?id=17893594