Implemented circular buffer and random page generator