Thanks, I'll check it out.
On Tue, Jul 6, 2021 at 2:15 AM Henning Westerholt <hw(a)skalatan.de> wrote:
Hi,
Look at the cfgutils Module. $RANDOM with arithmetic operation in cfg.
Cheers,
Henning
--
Henning Westerholt -
https://skalatan.de/blog/
Kamailio services -
https://skalatan.de/services
------------------------------
*From:* sr-dev <sr-dev-bounces(a)lists.kamailio.org> on behalf of Brandon
Armstead <brandon(a)cryy.com>
*Sent:* Tuesday, July 6, 2021 1:31:50 AM
*To:* Kamailio (SER) - Development Mailing List <sr-dev(a)lists.kamailio.org
*Subject:* [sr-dev] range transformation
or var
Is there a way to generate a random number between min and max currently?
i.e.
$var(rand) = $rand(0, 5) // generates a random int between 0 and 5?
This could be useful for in configuration weighting / load distribution
without a dispatcher module.
Thanks!