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@lists.kamailio.org on behalf of Brandon Armstead brandon@cryy.com Sent: Tuesday, July 6, 2021 1:31:50 AM To: Kamailio (SER) - Development Mailing List sr-dev@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!