Search:
Asterisk func rand
Synopsis:
Choose a random number in a rangeDescription:
RAND(min,max)Choose a random number between min and max. Min defaults to 0, if not
specified, while max defaults to RAND_MAX (2147483647 on many systems).
Notes
- *CLI> core show function RAND
- This functions is only availible in 1.4 and later.
Return value
Returns the resulting number.Example
exten => s,1,Set(junky=${RAND(1,8)});- Sets junky to a random number between 1 and 8, inclusive.

Page Changes
