Monte Carlo for prediction and control