Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'List' topicStudent Support Forum > General > "List"

Next Comment >Help | Reply To Topic
Author Comment/Response
Student0002012
12/20/12 5:43pm

Hello,

here is the function:
Pension = 1000000; Risky = 0.6; Riskless = 0.4; riskfree = 0.04; mu = \
0.12; sigma = 0.3; draw = 150000;
Data10 = Data9*(Risky*
Exp[mu + sigma*RandomReal[NormalDistribution[0, 1]]] +
Riskless*Exp[riskfree]) - draw

I want that mathematica does this function 100 times!
Do[Print[Data10], {100}] <-- Doesn't work because mathematice prints the same solution 100 times, but i want to have 100 different solutions... but it always uses the same randomnumber

Attachment: basic.nb, URL: ,

Subject (listing for 'List')
Author Date Posted
List Student0002012 12/20/12 5:43pm
Re: List jf 12/20/12 7:11pm
Additional questions Student0002012 12/20/12 9:29pm
Re: Additional questions jf 12/21/12 12:59pm
Loop doesn't work Student0002012 12/21/12 6:09pm
Loop doesn't work Student0002012 12/21/12 11:19pm
Re: Loop doesn't work yehuda 12/28/12 4:05pm
Next Comment >Help | Reply To Topic