Chemist here. Was a walk in the park to do that, since its the math of physical chemistry used to explain random walks.
Then again, I understand nothing about IT except for O(matrix calculation) for hydrogen and Eigenvalues.