Skip to main content

mbr_randint

Usage

This shortcode returns a random integer.

Parameters

ParametersDescription
minThe minimum value of the random integer.
Default: 0
Required: no.
maxThe 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

Returns a random integer between 1 and 10 inclusive.

[mbr_randint min='1' max='10']

API

Note

There is no ActiveMember360 API function equivalent for this shortcode. Please use the PHP function rand.