Skip to content

Rand ​

Returns a random integer. The input is the minimum and the argument is the maximum. Both values are included.

liquid
{{ minimum | rand: maximum }}

Example ​

liquid
{{ 1 | rand: 6 }}

Output

html
4