Price Evolution in an M x 3 Matrix

Hello Guys, have am practicing for my upcoming exam and one of the exercises goes as follows:
Price of a risky asset is denoted by: S_t = S_t-1*exp(X_t)

I need to calculate prices of options. t = 1, 2 ; S0=100 and X1 and X2 are randomly generated variables. I shall calculate for a time period of S0, S1 and S2.

Now comes the twist: I shall write an R function with an input M which generates M scenarios of price evolution for the risky asset and returns a M x 3 Matrix and each row needs to contain one of those scenarios. How do I go about this?

Any help would be greatly appreciated!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.