follow question:
How can I calculate this model several times automatically.
Clear[P];
P[t_] := P[t] = P[t - 1] + RandomVariate[NormalDistribution[0, RP]];
P[0] = 1;
ListLinePlot[Table[P[t], {t, 1, 20}]]
I used Table[Table[P[t], {t, 1, 10}], {i, 1, 10}]
to calculate this 10 times, but everytime I had the same result.
Thanks
Table
? Note that once you memoize it, you'll of course keep getting the same result. $\endgroup$