./random-walk.pl -benchmark -dimensions=2 -steps=4 -iterate -show_coords_freq -show_directions -show_distances -show_stepped_ons Starting Random Walk at 2015_10_06_17:30:46.851 Parameters are 2 dimensions (which has 4 directions) and 4 steps ... Running 256 iterations - this can take a while ... Frequency Stepped Ons 144 1-1-1-1 48 1-1-2-1 48 1-1-1-2 16 1-1-2-2 256 Total Routes 84 Returned to orgin which is 32% Frequency Coordinate 100 (0,-1) 100 (1,0) 100 (0,1) 100 (0,0) 100 (-1,0) 56 (-1,1) 56 (1,1) 56 (1,-1) 56 (-1,-1) 32 (-2,0) 32 (0,2) 32 (2,0) 32 (0,-2) 12 (-2,1) 12 (1,2) 12 (-1,-2) 12 (2,1) 12 (-2,-1) 12 (1,-2) 12 (2,-1) 12 (-1,2) 6 (-2,-2) 6 (2,-2) 6 (-2,2) 6 (2,2) 4 (-3,0) 4 (0,-3) 4 (0,3) 4 (-3,1) 4 (3,0) 4 (-1,3) 4 (-3,-1) 4 (1,-3) 4 (3,1) 4 (3,-1) 4 (1,3) 4 (-1,-3) 1 (0,-4) 1 (4,0) 1 (0,4) 1 (-4,0) Direction Frequency 1 256 2 256 3 256 4 256 Distance Frequency Cumulative 0 100 1 500 10% 2 852 50% 3 988 90% 4 1024 100% For Random Walk of 2 dimensions and 4 steps, distance at which N percent of coordinates are contained 1 10% 2 50% 3 90% 4 100% Timing Data dumped at 2015_10_06_17:30:46.856 000_start : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 101_end_of_program : 0.004 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU) 999_end : 0.004 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)