./random-walk.pl -benchmark -dimensions=2 -steps=2 -iterate -show_all Starting Random Walk at 2015_10_06_17:30:46.777 Parameters are 2 dimensions (which has 4 directions) and 2 steps ... Running 16 iterations - this can take a while ... for iteration 1 the directions are: 1 1 Step Direction D1 D2 1 1 -1 0 2 1 -2 0 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 2 the directions are: 1 2 Step Direction D1 D2 1 1 -1 0 2 2 0 0 Coordinates stepped on are: 1-1 for iteration 3 the directions are: 1 3 Step Direction D1 D2 1 1 -1 0 2 3 -1 -1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 4 the directions are: 1 4 Step Direction D1 D2 1 1 -1 0 2 4 -1 1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 5 the directions are: 2 1 Step Direction D1 D2 1 2 1 0 2 1 0 0 Coordinates stepped on are: 1-1 for iteration 6 the directions are: 2 2 Step Direction D1 D2 1 2 1 0 2 2 2 0 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 7 the directions are: 2 3 Step Direction D1 D2 1 2 1 0 2 3 1 -1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 8 the directions are: 2 4 Step Direction D1 D2 1 2 1 0 2 4 1 1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 9 the directions are: 3 1 Step Direction D1 D2 1 3 0 -1 2 1 -1 -1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 10 the directions are: 3 2 Step Direction D1 D2 1 3 0 -1 2 2 1 -1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 11 the directions are: 3 3 Step Direction D1 D2 1 3 0 -1 2 3 0 -2 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 12 the directions are: 3 4 Step Direction D1 D2 1 3 0 -1 2 4 0 0 Coordinates stepped on are: 1-1 for iteration 13 the directions are: 4 1 Step Direction D1 D2 1 4 0 1 2 1 -1 1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 14 the directions are: 4 2 Step Direction D1 D2 1 4 0 1 2 2 1 1 Coordinates stepped on are: 1-1 Never returned to orgin for iteration 15 the directions are: 4 3 Step Direction D1 D2 1 4 0 1 2 3 0 0 Coordinates stepped on are: 1-1 for iteration 16 the directions are: 4 4 Step Direction D1 D2 1 4 0 1 2 4 0 2 Coordinates stepped on are: 1-1 Never returned to orgin Frequency Stepped Ons 16 1-1 16 Total Routes 4 Returned to orgin which is 25% Frequency Coordinate 4 (1,0) 4 (0,1) 4 (0,-1) 4 (0,0) 4 (-1,0) 2 (-1,-1) 2 (1,-1) 2 (-1,1) 2 (1,1) 1 (0,2) 1 (2,0) 1 (0,-2) 1 (-2,0) Direction Frequency 1 8 2 8 3 8 4 8 Distance Frequency Cumulative 0 4 10% 1 20 50% 2 32 100% For Random Walk of 2 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.778 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)