Community discussions

MikroTik App
 
VincentL
newbie
Topic Author
Posts: 34
Joined: Fri Feb 03, 2017 3:27 pm

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

Mon Mar 28, 2022 3:22 pm

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
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

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

Mon Mar 28, 2022 3:39 pm

Just a quick search on this forum and you can find multiple post.
viewtopic.php?f=9&t=56933
viewtopic.php?f=9&t=175453&p=858629
 
VincentL
newbie
Topic Author
Posts: 34
Joined: Fri Feb 03, 2017 3:27 pm

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

Mon Mar 28, 2022 4:45 pm

@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

Who is online

Users browsing this forum: No registered users and 19 guests