1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

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);
}
# delay a random amount of seconds
:global RandomDelay do={
:global GetRandom;
:delay ([ $GetRandom $1 ] . "s");
}