Optimized monte carlo methods