In a completely analogous way, a photon (or a ray, if you prefer) entering a substance consisting of small transparent crystals gets randomly refracted (scattered) and ends up coming back to the surface, whence it emerges in some random direction, never to return to the bulk