[ROS6.x] Generate a random number in a range.

Hello,

I’m jealous about the ROS7 rndnum !
At the moment, I can’t upgrade all my routers, so I’m looking for a simple way to generate a random number between a given range.
I found some examples on Internet, but the are really tricky.
Did you have tips to do this easily ?

Regards,

Vincent

Just a quick search on this forum and you can find multiple post.
http://forum.mikrotik.com/t/pseudo-random-number-generator-script-mersenne-twister/51962/1
http://forum.mikrotik.com/t/random-number-between-0-and-99-or-string-between-00-and-99/149267/1

@Jotne :
Thank you for your links.
I’ve found the first one, and it’s what I’ve called “tricky” .
I’ll have a look to the second, I’ve have not found previously.

Regards,

Vincent