mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: add $RandomDelay
This commit is contained in:
parent
f49b67f5e7
commit
acce2322c3
1 changed files with 7 additions and 0 deletions
|
@ -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");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue