You'd need to have a list of the HTML pages located in that folder, but once you have that as, say, an array, you can simply create a Random object and call Next five times to get five random indexes into that array.