In solo mining : miner try to find the block itself , he tries all nonces. so the work is all possibilities
another solo miner will do the same , so he will try all possibilities .
What's wrong with that ?
If you are talking about a different miner on the planet mining to a different node/pool that is an entirely different matter. Is it
possible they may get the same work at the same time? Sure.
It is also bloody unlikely because the work sent to them is completely random and is defined by the node they get the work from. Not only can/will the work ID's be different but the underlying data itself will be as well because the node/pool picks what Tx's to process and again that results in different work being sent. Also keep in mind that even the fastest hardware cannot sequentially process all possible values before someone, somewhere, finds a block and forces new work to be started. 2
32 is a huge, huge number...
Sorry to be bouncing you around the Forum but since you are inquiring about the nuts and bolts of how mining works you might want to move this discussion to the
Development & Technical area of the Forum where you will get more eyeballs looking at your questions.