Generate A Random Number with Limits

Description

This simple snippet generates a random number between 1 and 5

Code

${esc.hash}set(${esc.dollar}num1 = 1)
${esc.hash}set(${esc.dollar}num2 = 5)

${esc.hash}set(${esc.dollar}choose = ${esc.dollar}math.random(${esc.dollar}num1, ${esc.dollar}num2))
<p> Random Number is ${esc.dollar}choose</p>