Function BoxMullerTransformation() As Double
'Make use of BoxMullerTransformation to calculate a Random Number from a Normal Distribution
'http://mathworld.wolfram.com/Box-MullerTransformation.html
Randomize
BoxMullerTransformation = Sqr(-2 * Log(Rnd)) * Sin(2 * PI() * Rnd)
End FunctionMathematics can be interesting :)

No comments:
Post a Comment
Do provide your constructive comment. I appreciate that.