L-functions and equidistribution