Create a page which randomly redirects to another. Create an array of urls (as strings), and randomly pick one using Math.random(). Then redirect to the page using window.location.
Using JavaScript's timing events show a 5-second countdown to the user. When the countdown is finished, redirect to a random page.