Loading Random Movies

I am using this code from Kirupa. Is there a way to keep playing the different movies at random without forcing users to reload the page?


filename =   ["movie1.swf",   "movie2.swf",    "movie3.swf"];
path =   "/flash/";
i =   filename.length;   k =   Math.floor(Math.random()*i);
loadMovieNum(path+filename[k], 2);