Brekeke SIP Server Wiki

$math.rand

Random number

 

Syntax:
$math.rand( begin, end )
Parameters:

begin – beginning of the range
end – end of the range

 

Returns:

A random number from the specified range

 

Version Since:

1.0

 

Where the function can be used:
  • Preliminary rules
  • Regular rules
Example:
$math.rand( “2000”, “3000” ) = (.+)

Get a random number from the range 2000-3000.

Yes No
Suggest Edit