Fix reversed arguments in call to get_random_pages.