Generating visit HTML to print with and without randomization