I have a program that uses the following line:
When I step through the entire program and watch this:Please Login or Register to view this content.
WorksheetFunction.NormInv(Rnd(), Mu / 100, StDev / 100)))
I notice that it generates a new random number and recalculates NormInv on each step. I may be wrong but I believe the calculation of NormInv is done through an iterative process which I am guessing eats up a lot of clock cycles. The only time that I need the program to generate a new random number and calculate NormInv is when the program gets to that line. How can I get NormInv to NOT calculate a new number every step through the program?
Bookmarks