Skip to content

i4w_randint

This shortcode returns a random integer.

[ELSE_randint] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

ParameterDescriptionDefaultRequired
minThe minimum value of the random integer.0No
maxThe maximum value of the random integer.PHP_INT_MAXNo
Shortcode
[i4w_randint min='1' max='10']
Shortcode
[i4w_randint min='10']
Shortcode
[i4w_randint max='1000']