The distribution of energy and matter in the universe is not uniform on small scales due to the presence of galaxies and voids, but it becomes homogeneous on larger scales, specifically beyond 100 megaparsecs. Scientists measure this distribution by analyzing the mass within varying spherical volumes centered on random points in space. As the radius of these spheres increases, if the mass increases proportionally, it indicates a consistent density. Observations show that on scales greater than 100 megaparsecs, the universe appears smooth and evenly distributed. Overall, current measurements support the conclusion that energy and matter density is homogeneously distributed across the universe.