Add function to sample pages at random.
Merge github.com:OMGitsHongyu/ML_project