Three same-distance routes

Newbie question : what if I have three 0.0.0.0/0 routes (WANs) with the same distance set ?
How are packet routed to internet, randomly ?
Thanks

If all 0.0.0.0/0 routes are the same then I would expect the first active one (high in the list) it comes across. You have to also look at the preferred source or routing mark if there is more specific routing information.

The router will decide which has the shortest route and yes it may change randomly.
In any case your question is baseless without context.
Its not what you think the router will do that counts.
Its what you want the router to do.

So state your requirements and will assist.

Theoretically it’s just a question but pratically, yes you’re right :

I have three gateways and six 0.0.0.0/0 routes : three routing-marked as results of PCC skim , the same three unmarked, as default , with same distance, for packets excluded or not being processed by PCC.
How are these last packets routed once delivered to these equal-distance default route ?

Whichever route is currently Active - and likely it is the first to be installed assuming all same distance, scope etc.

There is a way to do ECMP by having the gateways in the SAME route if that is what you are after, but I do not believe you can add dynamic default routes (OSPF, BGP etc) to combine into one of these style of routes, only if you manually manage that default route.

If you could use several 0.0.0.0/0 route simultaneous and get them used in parallel with defined behavior (without adding more info such as preferred source etc.),
this would be like the router doing an automatic load balancing and as such there would be no need for mangle/PCC (roughly speaking).

If you want a specific behavior, you will need to use mangle to decide what you want. Selection can be via PCC or via subnets, IP ranges,
interface lists etc. but it needs to be defined.