In general, it's a random choice between the mining nodes that qualify, and MultiChain takes care of ensuring that it's unlikely for two nodes to generate a block at the same time. But if your blockchain's mining diversity is set to 1.0, then the nodes will mine in strict rotation.