./random-walk.pl -benchmark -dimensions=4 -steps=4 -iterate -show_coords_freq -show_directions -show_distances -show_stepped_ons Starting Random Walk at 2015_10_06_17:30:47.457 Parameters are 4 dimensions (which has 8 directions) and 4 steps ... Running 4096 iterations - this can take a while ... Frequency Stepped Ons 3136 1-1-1-1 448 1-1-2-1 448 1-1-1-2 64 1-1-2-2 4096 Total Routes 616 Returned to orgin which is 15% Frequency Coordinate 680 (0,0,0,0) 680 (0,1,0,0) 680 (0,0,0,1) 680 (0,-1,0,0) 680 (1,0,0,0) 680 (0,0,-1,0) 680 (0,0,0,-1) 680 (-1,0,0,0) 680 (0,0,1,0) 200 (0,0,1,-1) 200 (-1,0,-1,0) 200 (-1,0,0,-1) 200 (1,-1,0,0) 200 (1,1,0,0) 200 (0,-1,0,1) 200 (1,0,0,1) 200 (1,0,0,-1) 200 (0,-1,1,0) 200 (0,-1,0,-1) 200 (0,1,-1,0) 200 (1,0,1,0) 200 (-1,0,0,1) 200 (-1,1,0,0) 200 (0,0,-1,1) 200 (0,0,-1,-1) 200 (0,0,1,1) 200 (0,1,0,-1) 200 (0,1,1,0) 200 (0,1,0,1) 200 (0,-1,-1,0) 200 (1,0,-1,0) 200 (-1,0,1,0) 200 (-1,-1,0,0) 104 (0,0,0,2) 104 (2,0,0,0) 104 (0,0,-2,0) 104 (0,-2,0,0) 104 (0,2,0,0) 104 (0,0,2,0) 104 (0,0,0,-2) 104 (-2,0,0,0) 48 (-1,-1,1,0) 48 (1,-1,-1,0) 48 (1,0,-1,-1) 48 (-1,-1,0,-1) 48 (1,0,1,1) 48 (1,1,-1,0) 48 (-1,0,1,1) 48 (-1,1,-1,0) 48 (-1,0,-1,1) 48 (-1,-1,-1,0) 48 (-1,0,1,-1) 48 (1,1,0,1) 48 (0,1,-1,-1) 48 (0,-1,1,1) 48 (0,-1,-1,1) 48 (1,-1,0,-1) 48 (-1,1,1,0) 48 (0,1,1,-1) 48 (0,-1,-1,-1) 48 (1,0,-1,1) 48 (1,1,1,0) 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,3,1,0) 4 (0,3,-1,0) 4 (3,0,0,-1) 4 (-1,0,3,0) 4 (-3,1,0,0) 4 (0,1,0,3) 4 (3,1,0,0) 4 (0,-3,-1,0) 4 (0,0,3,-1) 4 (0,-3,0,1) 4 (0,3,0,1) 4 (0,-1,0,-3) 4 (-1,0,0,3) 4 (3,0,-1,0) 4 (-3,-1,0,0) 4 (0,3,0,-1) 4 (0,0,-1,3) 4 (1,0,0,-3) 4 (1,-3,0,0) 4 (3,-1,0,0) 1 (0,0,-4,0) 1 (4,0,0,0) 1 (0,0,0,4) 1 (0,0,0,-4) 1 (0,4,0,0) 1 (0,0,4,0) 1 (0,-4,0,0) 1 (-4,0,0,0) Direction Frequency 1 2048 2 2048 3 2048 4 2048 5 2048 6 2048 7 2048 8 2048 Distance Frequency Cumulative 0 680 1 6120 10% 2 13672 50% 3 16184 90% 4 16384 100% For Random Walk of 4 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:47.538 000_start : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 101_end_of_program : 0.080 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU) 999_end : 0.080 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU)