$siteler = array(1=>"google.com",2=>"yahoo.com",3=>"bing.com",4=>"mynet.com"); $rand = rand (1,4); header("location:http://www.".$siteler[$rand]);