abstract random into it's own function
fix random page