[sr-dev] range transformation or var

Brandon Armstead brandon at cryy.com
Tue Jul 6 00:31:50 CEST 2021

Is there a way to generate a random number between min and max currently?


$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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210705/ade9bc8e/attachment.htm>

More information about the sr-dev mailing list