Made sure random number is regenerated each time so while loop to find random enabled page does not keep going forever.  Added catatchall of 10 attempts before giving up and displaying the first page.