aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 6f1776b..b7eec27 100644
--- a/global-functions
+++ b/global-functions
@@ -258,3 +258,10 @@
}
:return ($Sum % $Max);
}
+
+# delay a random amount of seconds
+:global RandomDelay do={
+ :global GetRandom;
+
+ :delay ([ $GetRandom $1 ] . "s");
+}