--- url: https://developer.youcan.shop/themes/filters/math/rand.md --- # 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 }} ``` ::: tip Output ```html 4 ``` :::