generate_random_page should work on the page passed in, not page_rand