Correlation between asset returns

Consider two assets X and Y with returns that follow a Normal distribution.

The expected returns, standard deviation and correlation of asset returns are given by:

Note: Whenever you change the parameters a new random sample is drawn.

The plot below shows 50 simulated returns of these two assets:

The plot below shows the simulated prices of these two assets, treating the simulated returns as log-returns (continuously compounded returns) and assuming that their prices at time zero are 100: