From d19864947b6e8ea1049a56ca3d965691c51b4108 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 18 Nov 2023 17:11:36 +0200 Subject: Joystick event. --- examples/resources/lib/utillib.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/resources/lib') 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 -- cgit v1.2.3