mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 04:24:29 +02: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…
Add table
Add a link
Reference in a new issue