I'm learning a little bit about {vb:set ...} and {vb:raw ... } but I am not quite sure how to accomplish using that to set a custom variable to simple a random number.
I'm trying to do exactly this:
PHP Code:
$randomnum = rand(1,112);
Code:
{vb:set randnum, $randomnum}
Then use the random number inside the same template:
I've saw there is a php function for {vb:...}, but it doesn't look like I would be able to accomplish that using that. Is there an easy way to go about doing this?