mbr_randint
Usage
This shortcode returns a random integer.
Parameters
Parameters | Description |
---|---|
min | The minimum value of the random integer. Default: 0 Required: no. |
max | The maximum value of the random integer. Default: PHP_INT_MAX. (The largest integer supported in your build of PHP. Usually int(2147483647). Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_randint].
Nesting
Shortcode nesting within is NOT supported.
Examples
- Example 1
- Example 2
- Example 3
Returns a random integer between 1 and 10 inclusive.
[mbr_randint min='1' max='10']
Returns a random integer equal to or greater than 10.
[mbr_randint min='10']
Returns a random integer equal to or less than 1000.
[mbr_randint max='1000']
API
Note
There is no ActiveMember360 API function equivalent for this shortcode. Please use the PHP function rand.