What specific characteristic of Earth's atmosphere causes the random bending of starlight?

Answer

Layers of air with varying temperatures and densities.

The Earth's atmosphere is not uniform; it contains turbulent layers characterized by differences in air temperature and density, which act like tiny, rapidly moving lenses.

What specific characteristic of Earth's atmosphere causes the random bending of starlight?
astronomyplanetsatmospheretwinklingflickering