Forum:Importing random images

I would like to have a 10 random images from this category imported to main page of the wiki. While looking for a soluton myself I have found this. I assume that I can use it ten times on the page. If yes, how to install it? I am not sure where to put that .php file.
 * Ask Staff to enable that extension by requesting it through Special:Contact/general.TK-999 (talk) 10:38, August 11, 2012 (UTC)