Global optimization using Monte Carlo simulation