wax devi inserirlo in una pagina PHP tra <head> e </head> (Riscrivo il codice dato che ho scordato quale cosa)
Codice PHP:
<?
$bg_disponibili = array('bg_home_a.jpg','bg_home_b.jpg','bg_home_b.jpg');
$bg = array_rand($bg_disponibili,'1');
echo '
<style type="text/css">
#home {
position: absolute;
top: 0%;
left: 0%;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background:url(../img/bg/'.$bg[1].') center center no-repeat fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover; }
</style>
';
?>
Ovviamente puoi cambiare "#home" con body per far sì che il background sia quello del sito..