Add function to sample pages at random.