![]() |
WorksheetFunction Class - Random values from LogInv needed
Hi there I am trying to create a function that will grab random values from a given distribution (lognormal and beta in particular). I am currently using the following code for lognormal: dblValue = Application.WorksheetFunction.LogInv(Rnd(), v1, v2) where v1 is my mean and v2 is my standard deviation. But each time I try to run it, I get the error "Unable to get the LogInv property of the Worksheet Function class" Any suggestions? -- leebean337 ------------------------------------------------------------------------ leebean337's Profile: http://www.excelforum.com/member.php...o&userid=31099 View this thread: http://www.excelforum.com/showthread...hreadid=507712 |
All times are GMT +1. The time now is 01:50 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com