From acce2322c347deb75c38337a725ead30320a9f6e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 26 Jul 2019 18:14:33 +0200 Subject: global-functions: add $RandomDelay --- global-functions | 7 +++++++ 1 file changed, 7 insertions(+) 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"); +} -- cgit v1.2.3-54-g00ecf