Here there are the Python codes used to compute the Expected Random Homology of my thesis work. I also used the JavaPlex library (http://javaplex.github.io/javaplex/) and the Holes module (https://github.com/lordgrilo/Holes).