if formula

  1. M

    Create loop for Monte Carlo Simulation

    Hi I have some trouble writing out a monte carlo simulation properly. I assign variables for the process before the steps. The first step is assigning variable j = j + 1 Second step i draw three random numbers from a U(0,1) dist. u1, u2 and u3. Third step is a long if formula. It...