I am doing some work with black-scholes. As commented within my code, I need my while loop to run 100 times. I am not sure if the best way to do this is with a nested argument or placing a for loop or another while within the while already.
dt = .0001;
mu = 0;
gamma = .005;
t = .0833;
i = t/dt;
random = RandomVariate[NormalDistribution[0, dt^.5], 10^2];
Z = Table[0, 10^2 + 1];
Z[[1]] = .0158;
i = 2;
While[i <= 834,
Z[[i]] = Z[[i - 1]] + mu*dt + (gamma)*random[[i - 1]];
i++
];
(*have to make this loop 100 times*)
ListPlot[Z, DataRange -> {0, 100*dt}, PlotRange -> All];
Print[Z];