(SOLVED) Schedule ini time Random

I used to config all my mikrotik’s routers with a generic script.
In this script I add an Schedule script to fetch info from URL and synchronize my router.
Now I have more than 80 mikrotiks with this configuration and all of them fires the Schedule script on the SAME time minute second.

This is the scheduler:
/system scheduler
add comment=“Update Sincro” interval=5m name=_SwB_Sinc on-event=_SwB_Sinc
policy=read,write,test start-date=jan/01/1970 start-time=09:27:00

Even if I write the scrip without start-date=jan/01/1970 start-time=09:27:00
because i run the script with
/system reset-configuration no-defaults=yes run-after-reset=ini_script.rsc
and no time set all the scripts has same on start-date=jan/01/1970 start-time=09:27:00

I’m thinking that some work around would be to generate a random time minutes-seconds to make different all scripts … But read that is not a random number generated on mikrotiks. And even is not time set on routerOS when rebooting…

May someone has any easy solution?

Thanks

Supposedly, the clock on all devices would be different… So maybe use that as a base start-date and start-time?

Not really, i’m using RB951 ui 2hnd and the clock when reset device always de same jan/02/1970 00:00:00
If I run this script without specify time:

/system scheduler
add comment=“Update Sincro” interval=5m name=_SwB_Sinc on-event=_SwB_Sinc
policy=read,write,test

On differents reset-configuration and run-after-reset=ini_script.rsc
Schedule start date is between: jan/02/1970 00:00:38 - 00:00:55 …

So I need to random from 00:00:00 to 00:04:59 because my script is running every 5 minutes.

I did some work arround.
I need differents numbers for each routers.
So with Mac ETH1 and routerserial I generate diferents numbers.
Then because I run Schedule every 5 minutes I generate time from 0:00 to 4:59

Random star-time

Generar minutos aleatorios de 0:00 a 4:59

:local nMin; # 0..4
:local nSeg; # 0..59

:set nMin ([:tonum ("0x".[:pick $macEth1 7])] * [:tonum ("0x".[:pick $macEth1 16])] + [:tonum ("0x".[:pick $routerSerial 11])]);
:set nSeg ([:tonum ("0x".[:pick $macEth1 6])] + [:tonum ("0x".[:pick $macEth1 15])] * ([:tonum ("0x".[:pick $routerSerialSc 8])] + [:tonum ("0x".[:pick $routerSerialSc 9])]) );

:set nMin ($nMin+5);
:set nSeg ($nSeg+60);

:set $nMin ($nMin - (($nMin / 5 ) * 5 ));
:set $nSeg ($nSeg - (($nSeg / 60 ) * 60 ));

:if ($nSeg < 10) do={ :set nSeg ("0".$nSeg); }

:local stime1 ("09:0".$nMin.":".$nSeg);
:local stime2 ("09:0".($nMin+1).":".$nSeg);
:log info ("Time schedule ".$stime1);

SCHEDULER

/system scheduler
add disabled=no interval=5m name=xxxx comment=xxx on-event=vpn_host_swb policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitive
start-date=jan/01/1970 start-time=$stime2


Could be better but solve the issue for me.