I will post my solution for posterity's sake.
I wasnt able to use a variable for all templates but registering vars for templates is pretty easy.
I added a plugin to the "parse_templates" hook location:
PHP Code:
$ad_int = mt_rand(1, 10);
vB_Template::preRegister('header',array('ad_int' => $ad_int));
vB_Template::preRegister('navbar',array('ad_int' => $ad_int));
vB_Template::preRegister('adv_portal_cube_banner',array('ad_int' => $ad_int));
vB_Template::preRegister('postbit_legacy',array('ad_int' => $ad_int));
mt_rand() is a built in RNG and in this case 1 is the minimum, and 10 is the maximum.
I am not sure if this is the proper way to do this but it is working for me, I can use {vb:raw ad_int} in the specified templates. Maybe someone can chime in if there is a better way to do it.
Cheers