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:
@@ -258,3 +258,10 @@
|
||||
}
|
||||
:return ($Sum % $Max);
|
||||
}
|
||||
|
||||
# delay a random amount of seconds
|
||||
:global RandomDelay do={
|
||||
:global GetRandom;
|
||||
|
||||
:delay ([ $GetRandom $1 ] . "s");
|
||||
}
|
||||
|
Reference in New Issue
Block a user