The introduction was changed to focus on Functional Programming, explaining a bit more what it is and what pure functions are.
The refactor was changed to mark the use of Math.random() as being side-effectful / impure, and then added a few refactoring steps to account for that.