From 500150b12a05a1c757414724d285cdea8f925bda Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 15 May 2022 22:52:11 +0100 Subject: [PATCH] Correct log normal --- core/math/rand/distributions.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/rand/distributions.odin b/core/math/rand/distributions.odin index 05ab084a3..9e38f6517 100644 --- a/core/math/rand/distributions.odin +++ b/core/math/rand/distributions.odin @@ -53,7 +53,7 @@ float32_normal :: proc(mean, stddev: f32, r: ^Rand = nil) -> f32 { // Log Normal Distribution float64_log_normal :: proc(mean, stddev: f64, r: ^Rand = nil) -> f64 { - return math.ln(float64_normal(mean, stddev, r)) + return math.exp(float64_normal(mean, stddev, r)) } // Log Normal Distribution float32_log_normal :: proc(mean, stddev: f32, r: ^Rand = nil) -> f32 {