Adding Random Walk codes from Physics Projcet