./random-walk.pl -benchmark -dimensions=2 -steps=5 -iterate -show_coords_freq -show_directions -show_distances -show_stepped_ons Starting Random Walk at 2015_10_06_17:30:46.890 Parameters are 2 dimensions (which has 4 directions) and 5 steps ... Running 1024 iterations - this can take a while ... Frequency Stepped Ons 400 1-1-1-1-1 176 1-1-1-1-2 144 1-1-2-1-1 96 1-1-1-2-2 96 1-1-1-2-1 48 1-1-2-1-3 48 1-1-2-2-1 16 1-1-2-2-3 1024 Total Routes 336 Returned to orgin which is 32% Frequency Coordinate 500 (0,-1) 500 (1,0) 500 (0,1) 500 (-1,0) 400 (0,0) 224 (-1,1) 224 (1,1) 224 (1,-1) 224 (-1,-1) 128 (-2,0) 128 (0,2) 128 (2,0) 128 (0,-2) 98 (-2,1) 98 (1,2) 98 (-1,-2) 98 (2,1) 98 (-2,-1) 98 (1,-2) 98 (2,-1) 98 (-1,2) 41 (-3,0) 41 (0,-3) 41 (0,3) 41 (3,0) 24 (-2,-2) 24 (2,-2) 24 (-2,2) 24 (2,2) 16 (-3,1) 16 (-1,3) 16 (-3,-1) 16 (1,-3) 16 (3,1) 16 (3,-1) 16 (1,3) 16 (-1,-3) 10 (-3,-2) 10 (3,2) 10 (3,-2) 10 (-3,2) 10 (-2,-3) 10 (2,-3) 10 (-2,3) 10 (2,3) 5 (1,4) 5 (-1,-4) 5 (4,-1) 5 (-4,1) 5 (-4,-1) 5 (4,1) 5 (1,-4) 5 (-1,4) 4 (0,-4) 4 (4,0) 4 (0,4) 4 (-4,0) 1 (-5,0) 1 (5,0) 1 (0,5) 1 (0,-5) Direction Frequency 1 1280 2 1280 3 1280 4 1280 Distance Frequency Cumulative 0 400 1 2400 10% 2 3808 50% 3 4852 90% 4 5076 5 5120 100% For Random Walk of 2 dimensions and 5 steps, distance at which N percent of coordinates are contained 1 10% 2 50% 3 90% 5 100% Timing Data dumped at 2015_10_06_17:30:46.910 000_start : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 101_end_of_program : 0.019 wallclock secs ( 0.02 usr + 0.00 sys = 0.02 CPU) 999_end : 0.019 wallclock secs ( 0.02 usr + 0.00 sys = 0.02 CPU)