Not really allowed to do homework assignents here (otherwise how would people learn), but since you did have a specific question about VBA .....
1. I rearranged the code a little and I like to define everything
2. Sometimes variables need to be initialized
3. Hint -- 0.0 x N = 0.0 no matter how many times you do it
'I like this since it makes me careful with typing and choosing / using variables
Option Explicit
'I like to define everything as specifically as possible
Function RandReturn(mu As Double, sigma As Double) As Double
RandReturn = Application.WorksheetFunction.Norm_Inv(Rnd, mu, sigma)
End Function
Function SimAnnualReturn(mu As Double, sigma As Double, t As Long) As Double
Dim i As Long
Dim SimReturn As Double
SimReturn = 1# ' 1.0
For i = 1 To t
SimReturn = SimReturn * (1 + RandReturn(mu, sigma))
Next i
SimAnnualReturn = (SimReturn ^ (1 / t)) - 1
End Function
'just a way to test
Sub Driver()
MsgBox SimAnnualReturn(0.5, 0.1, 10)
End Sub