./random-walk.pl -benchmark -dimensions=1 -steps=2 -iterate -show_all Starting Random Walk at 2015_10_06_17:30:46.602 Parameters are 1 dimensions (which has 2 directions) and 2 steps ... Running 4 iterations - this can take a while ... for iteration 1 the directions are: 1 1 Step Direction D1 1 1 -1 2 1 -2 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 2 the directions are: 1 2 Step Direction D1 1 1 -1 2 2 0 Coordinates stepped on are: 1-1 for iteration 3 the directions are: 2 1 Step Direction D1 1 2 1 2 1 0 Coordinates stepped on are: 1-1 for iteration 4 the directions are: 2 2 Step Direction D1 1 2 1 2 2 2 Coordinates stepped on are: 1-1 Never returned to orgin Frequency Stepped Ons 4 1-1 4 Total Routes 2 Returned to orgin which is 50% Frequency Coordinate 2 (1) 2 (0) 2 (-1) 1 (-2) 1 (2) Direction Frequency 1 4 2 4 Distance Frequency Cumulative 0 2 10% 1 6 50% 2 8 100% For Random Walk of 1 dimensions and 2 steps, distance at which N percent of coordinates are contained 0 10% 1 50% 2 90% 2 100% Timing Data dumped at 2015_10_06_17:30:46.603 000_start : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 101_end_of_program : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 999_end : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)