# How does every ray of light or photon can follow the same Snell's law in a very random states of matter like gases and liquids?

We know that to study refraction at the interface of two media, we use Snell's law which is $$μ=\frac{\sin(i)}{\sin(r)}$$ or $$μ=c/v$$ (for vacuum as one of the media).

I know this is an experimentally proved law, but the one thing I don't understand is that every time a light ray passes through an interface between two media it gets refracted by the same angle for the two particular media. Now if we see the second formula, we can understand that for example when a light ray passes from, say vacuum to any other medium its velocity decreases because of the fact that it takes time for light for it to be absorbed and then emitted by any particle. But it still moves with velocity $$c$$ in the empty space in the medium. The thing I don't understand is that, why such random systems like liquids and gases do not give random results for refracting angles.