I have a Loop by use of the For function, which runs 10,000 times.
Within the Loop I have another Loop by use of For which runs 1000 times, this loop return a simple Monte Carlo value that is needed for the primary loop but it changes everytime the primary loop runs.
My problem is that I can only make the primary loop work if I leave out the inner loop. If I run the inner loop i runs 1000 times and returns the needed parameter, however, the primary loop stops after 1 run and does not keep running 10,000 times. If I leave out the inner loop the primary runs 10,000 times without any snags..
Any suggestions as to what the problem can be?
Am I not allowed to use embedded For/loop commands in Mathematica?