global-functions: add $RandomDelay

This commit is contained in:
Christian Hesse 2019-07-26 18:14:33 +02:00
parent f49b67f5e7
commit acce2322c3

View file

@ -258,3 +258,10 @@
} }
:return ($Sum % $Max); :return ($Sum % $Max);
} }
# delay a random amount of seconds
:global RandomDelay do={
:global GetRandom;
:delay ([ $GetRandom $1 ] . "s");
}