Make a standalone util function shuffleInPlace() and then implement CircularList.prototype.shuffle() using that, so that the core logic is reusable.