You can output a random 2-digit number with this variable:
{#2}
To output a specific range, you'd have to use a JavaScript variable. Try something like this (add to Variables tab):
rand1to10 = javascript:Math.floor(Math.random()*10+1)
Then you can use this variable like this: {@rand1to10}