summaryrefslogtreecommitdiff
path: root/examples/resources/lib
diff options
context:
space:
mode:
authorjussi2023-11-18 17:11:36 +0200
committerjussi2023-11-18 17:11:36 +0200
commitd19864947b6e8ea1049a56ca3d965691c51b4108 (patch)
tree5bd46e570b673ece6ef697848516d5d2401f093a /examples/resources/lib
parent5c8324d25f5f3500d5258f599afc710352611513 (diff)
downloadreilua-enhanced-d19864947b6e8ea1049a56ca3d965691c51b4108.tar.gz
reilua-enhanced-d19864947b6e8ea1049a56ca3d965691c51b4108.tar.bz2
reilua-enhanced-d19864947b6e8ea1049a56ca3d965691c51b4108.zip
Joystick event.
Diffstat (limited to 'examples/resources/lib')
-rw-r--r--examples/resources/lib/utillib.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/resources/lib/utillib.lua b/examples/resources/lib/utillib.lua
index 899f899..95184b0 100644
--- a/examples/resources/lib/utillib.lua
+++ b/examples/resources/lib/utillib.lua
@@ -166,4 +166,8 @@ function utillib.tableMove( t, src, len, dest )
table.move( copy, 1, len, dest, t )
end
+function utillib.randomFloat( min, max )
+ return min + math.random() * ( max - min );
+end
+
return utillib