Monte Carlo Optimization and Path Dependent Nonstationary Laws of Large Numbers