From 4c0c7682433a6da363ed8d608766fe8b52b70669 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Fri, 6 Mar 2026 18:55:27 -0500 Subject: yayyy hugbug --- src/math.odin | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/math.odin') diff --git a/src/math.odin b/src/math.odin index bfc0013..fd81ac8 100644 --- a/src/math.odin +++ b/src/math.odin @@ -2,6 +2,7 @@ package demonchime import "core:math" import "core:math/linalg" +import "core:math/rand" import "fw" @@ -19,3 +20,7 @@ dt_lerp_arr :: proc(a: [$N]$T, b: [N]T, t: T) -> [N]T { dt := T(fw.get_delta_time()) return linalg.lerp(b, a, math.pow(0.5, dt * t)) } + +coin_flip :: proc(rng := context.random_generator) -> bool { + return rand.int32_range(1, 3) == 1 +} -- cgit v1.3-2-g0d8e