#!/usr/bin/env python import random n = random.randint(171, 530) print 'Content-Type: text/html; charset=utf-8' print f = open('letter' + str(n) + '.html') bytes = f.read() f.close() print bytes # EOF