run_trials function

Simulate multiple trials