Hi,guys
Is there any way to generate a random number(integer) with MT scripts?
thx
Nope, it is not possible to generate rundom number with MT script at this moment, but rundom number generation will be implemented later in routerOS v 3.0Hi,guys
Is there any way to generate a random number(integer) with MT scripts?
thx
Brilliant!Nope. 9 years later, there's still no way in RouterOS scripting to generate a random number.
The closest thing you can do is an HTTP(S) request to random.org with "/tool fetch", and use that.
But what if we want to block websites by redirecting our users to a random shock website?Yes, random number feature is not implemented but sometimes it is worth to remember that this is router
This is only sufficient if you need one random number per second. If you need several per second, it's not enough, since the clock is only accurate up to a second.Yes, random number feature is not implemented but sometimes it is worth to remember that this is router
Why do not generate this number by yourself? For example, use clock to get random number