/* put this where you put all the other javascript */ function visitRandomPage() { var pages = [ '/fr/page_15784.html', '/fr/page_15785.html', '/fr/page_15786.html', /* put more page URLs here */ ]; var page = pages[Math.floor(Math.random() * pages.length)]; location.href = page; }