aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby/math.lua
diff options
context:
space:
mode:
authorame <[email protected]>2026-06-29 05:48:58 -0500
committerame <[email protected]>2026-06-29 05:48:58 -0500
commit727d3541a122795b405208242e6fdf7f8b5add07 (patch)
treedb049f349f669d37c6bf7d7feea18481a4f8b2d9 /library/lullaby/math.lua
parent4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (diff)
:detatch fix and math.random
Diffstat (limited to 'library/lullaby/math.lua')
-rw-r--r--library/lullaby/math.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/lullaby/math.lua b/library/lullaby/math.lua
index 2914a56..487a3c5 100644
--- a/library/lullaby/math.lua
+++ b/library/lullaby/math.lua
@@ -7,4 +7,13 @@ local math = {}
---@return integer
function math.lcm(N) end
+---all results are inclusive
+---() : from 0.0 to 1.0
+---(M) : from 1 to M
+---(M, N) : from M to N
+---@param M integer?
+---@param N integer?
+---@return integer|number
+function math.random(M, N) end
+
return math