Critical values of random analytic functions on complex manifolds