<div class="myDiv">some text</div>
<script type="text/javascript">
$(document).ready(function(){
var BG = ["http://boom-x.su/BG_01.jpg","http://boom-x.su/BG_02.jpg"];
var rand = Math.floor(Math.random()*(BG.length));
$("div.myDiv").css({"background-image":"url("+BG[rand]+")"});
});
</script>