diff --git a/core/math/rand/distributions.odin b/core/math/rand/distributions.odin index dea645748..7718bef9a 100644 --- a/core/math/rand/distributions.odin +++ b/core/math/rand/distributions.odin @@ -399,7 +399,7 @@ zipf_uint64 :: proc(z: Zipf) -> u64 { r := float64(z.gen) // [0, 1) ur := r * z.hx0_minus_hxm + z.hxm x := zipf_hinv(z, ur) - k := math.floor(x + 0.5) + k = math.floor(x + 0.5) if k-x <= z.s { break }