NXSL:random
Revision as of 18:13, 13 September 2022 by AlexKirhenshtein (talk | contribs) (Text replacement - "^" to "{{deprecated}}")
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Generate pseudo random number in given range. Uses c/c++ rand() function.
Syntax
random(minValue, maxValue);
Parameters
minValue start of range. maxValue end of range.
Return Value
Random value in range minValue..maxValue.
Examples
random(0, 100) -> random value in 0..100 range