Mixed effects packages/software do not solve these integrals by using simulation, but use other techniques instead, based on Gaussian quadrature. The idea is to evaluate the integrals at some specific points and then average them. In practice, these methods are much faster and more precise than the one we presented here.