This is a classic vanilla implementation of AJAX. Choose the .inc file name randomly from an array of choices. Then load the .inc file with an XMLHttpRequest. Insert the contents of that file onto your page. There are a kajillion tutorials online to teach you how to do this; find one and have fun!