rand

The rand filter takes two integer arguments: the first is the minimum bound and the second is the maximum bound. This will return a random integer between the minimum and maximum values, inclusive.

{{ 0|rand(10) }}