What file does the random image generator code go into? tpl_header.php? You would want to modify the random code to choose among a set of classnames referring to your images; include a test to call the random code for the home page and a static header classname for the rest, like this:
PHP Code:
<?php
if ($this_is_home_page) {
$header_class = //random generator classname call - to give names like 'random1', 'random2', 'random3', etc.
}else{
$header_class = 'static';
} ?>
<div id="headerWrapper class="<?php echo $header_class;?>">
Then you would have a set of stylesheet rules like
Code:
.smartBG_page_whatever #headerWrapper {background: url(../images/smartbg_page_whatever.jpg);}
#indexHome #headerWrapper.random1 {background: url(../images/randombg1.jpg);}
#indexHome #headerWrapper.random2 {background: url(../images/randombg2.jpg);}
#indexHome #headerWrapper.random3 {background: url(../images/randombg3.jpg);}
#indexHome #headerWrapper.random4 {background: url(../images/randombg4.jpg);}
The #indexHome will give enough specificity and priority to enforce the random selection for the home page.
If you want to use jpegs for the backgrounds, you need to either change Smart Backgrounds code to refer to .jpg instead of .gif in all places, or include a set of dummy image files with .gif suffixes to trigger the smartbg classnames, and the real .jpg files to use in the stylesheet.
Note that since you have to write the stylesheet rules manually, you don't have to refer to the same bg files as the ones the smartbg code looked for.