View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Michael R Middleton Michael R Middleton is offline
external usenet poster
 
Posts: 18
Default ATPVBAEN.XLA!Random Arguments

Randy -

In the most recent versions of Excel, the worksheet functions RAND and
NORMINV have better numerical properties.

So, you could use =NORMINV(RAND(),Mean,StDev) to obtain dynamic normally
distributed values on a worksheet.

Or, in VBA, use RND instead of RAND, with WorksheetFunction.NormInv.

- Mike

www.mikemiddleton.com