Testing MATLAB scripts of random walks