random
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !
Availability
This routine is available starting with SIL Engine™ 2.5.
Syntax
random(number)
Description
Returns a random int value between 0 (inclusive) and the specified value (exclusive). This works for integers only.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
number | Number | Yes | Number to get the random int value for. |
Return type
number
Example
number a = random(4); print("a= " + a);
Prints: a= 3;
See also