this sets var1 as a random #

SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*1000000 + 1); randomNumber;")

put

{{!VAR1}}

where you want the number to go