Refactor randomization into it's own base class.