var maxsiteNo = 3 var site= new Array() site[0] = 'http://bigbeachhits.com' site[1] = 'http://froggyhits.com' site[2] = 'http://thetraffichotspot.com' window.location = site[Math.round(Math.random() * maxsiteNo)]);