random

Description

Get a randomly number greater than or equal to 0 and strictly less than the max number passed in parameter.

Syntax

{{ <max_integer> | random }}

Example

{{ 10 | random }}

returns

"4"

or any numbers between 0 and 9.

© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top