Stochasticly. It's all random, as far as we can tell.
The things that make it all work, though, are the large amounts of receptors and binding thingys, the very small spaces, and the temperature. The cell is really kinda jam packed with stuff. But, since we're at ~97F or so, things bounce around a lot. The key here is the mean free path. Depending on the thing you're looking at, the mean free path of that thing is generally sufficient to get the pieces together to party. If not, then you start getting into really complex and hyper specific transport mechanisms. Each of those is going to be it's own little research world and will have little broad applications.
With large molecule drugs, you're likely using some clever transport mechanism with cleavages and digestion steps along the way. These are really some marvels of bioengineering.
With ions, you're just doing simple diffusion modeling, and the body very tightly regulates these ion concentrations
With peptides and these 'medium' sized things, you're looking a combination of diffusion and some hacking of the cell's machinery.
Again, I want to stress something here. We're still on the cusp of really understanding biology as a species. This stuff isn't EE. We're trying to unravel ~4 billion years of random-ass evolution, it's going to take a few thousand years for us to do that. Neither you nor I will see biology as a mature science.