./random-walk.pl -benchmark -dimensions=2 -steps=3 -iterate -show_all Starting Random Walk at 2015_10_06_17:30:46.813 Parameters are 2 dimensions (which has 4 directions) and 3 steps ... Running 64 iterations - this can take a while ... for iteration 1 the directions are: 1 1 1 Step Direction D1 D2 1 1 -1 0 2 1 -2 0 3 1 -3 0 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 2 the directions are: 1 1 2 Step Direction D1 D2 1 1 -1 0 2 1 -2 0 3 2 -1 0 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 3 the directions are: 1 1 3 Step Direction D1 D2 1 1 -1 0 2 1 -2 0 3 3 -2 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 4 the directions are: 1 1 4 Step Direction D1 D2 1 1 -1 0 2 1 -2 0 3 4 -2 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 5 the directions are: 1 2 1 Step Direction D1 D2 1 1 -1 0 2 2 0 0 3 1 -1 0 Coordinates stepped on are: 1-1-2 for iteration 6 the directions are: 1 2 2 Step Direction D1 D2 1 1 -1 0 2 2 0 0 3 2 1 0 Coordinates stepped on are: 1-1-1 for iteration 7 the directions are: 1 2 3 Step Direction D1 D2 1 1 -1 0 2 2 0 0 3 3 0 -1 Coordinates stepped on are: 1-1-1 for iteration 8 the directions are: 1 2 4 Step Direction D1 D2 1 1 -1 0 2 2 0 0 3 4 0 1 Coordinates stepped on are: 1-1-1 for iteration 9 the directions are: 1 3 1 Step Direction D1 D2 1 1 -1 0 2 3 -1 -1 3 1 -2 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 10 the directions are: 1 3 2 Step Direction D1 D2 1 1 -1 0 2 3 -1 -1 3 2 0 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 11 the directions are: 1 3 3 Step Direction D1 D2 1 1 -1 0 2 3 -1 -1 3 3 -1 -2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 12 the directions are: 1 3 4 Step Direction D1 D2 1 1 -1 0 2 3 -1 -1 3 4 -1 0 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 13 the directions are: 1 4 1 Step Direction D1 D2 1 1 -1 0 2 4 -1 1 3 1 -2 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 14 the directions are: 1 4 2 Step Direction D1 D2 1 1 -1 0 2 4 -1 1 3 2 0 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 15 the directions are: 1 4 3 Step Direction D1 D2 1 1 -1 0 2 4 -1 1 3 3 -1 0 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 16 the directions are: 1 4 4 Step Direction D1 D2 1 1 -1 0 2 4 -1 1 3 4 -1 2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 17 the directions are: 2 1 1 Step Direction D1 D2 1 2 1 0 2 1 0 0 3 1 -1 0 Coordinates stepped on are: 1-1-1 for iteration 18 the directions are: 2 1 2 Step Direction D1 D2 1 2 1 0 2 1 0 0 3 2 1 0 Coordinates stepped on are: 1-1-2 for iteration 19 the directions are: 2 1 3 Step Direction D1 D2 1 2 1 0 2 1 0 0 3 3 0 -1 Coordinates stepped on are: 1-1-1 for iteration 20 the directions are: 2 1 4 Step Direction D1 D2 1 2 1 0 2 1 0 0 3 4 0 1 Coordinates stepped on are: 1-1-1 for iteration 21 the directions are: 2 2 1 Step Direction D1 D2 1 2 1 0 2 2 2 0 3 1 1 0 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 22 the directions are: 2 2 2 Step Direction D1 D2 1 2 1 0 2 2 2 0 3 2 3 0 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 23 the directions are: 2 2 3 Step Direction D1 D2 1 2 1 0 2 2 2 0 3 3 2 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 24 the directions are: 2 2 4 Step Direction D1 D2 1 2 1 0 2 2 2 0 3 4 2 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 25 the directions are: 2 3 1 Step Direction D1 D2 1 2 1 0 2 3 1 -1 3 1 0 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 26 the directions are: 2 3 2 Step Direction D1 D2 1 2 1 0 2 3 1 -1 3 2 2 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 27 the directions are: 2 3 3 Step Direction D1 D2 1 2 1 0 2 3 1 -1 3 3 1 -2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 28 the directions are: 2 3 4 Step Direction D1 D2 1 2 1 0 2 3 1 -1 3 4 1 0 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 29 the directions are: 2 4 1 Step Direction D1 D2 1 2 1 0 2 4 1 1 3 1 0 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 30 the directions are: 2 4 2 Step Direction D1 D2 1 2 1 0 2 4 1 1 3 2 2 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 31 the directions are: 2 4 3 Step Direction D1 D2 1 2 1 0 2 4 1 1 3 3 1 0 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 32 the directions are: 2 4 4 Step Direction D1 D2 1 2 1 0 2 4 1 1 3 4 1 2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 33 the directions are: 3 1 1 Step Direction D1 D2 1 3 0 -1 2 1 -1 -1 3 1 -2 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 34 the directions are: 3 1 2 Step Direction D1 D2 1 3 0 -1 2 1 -1 -1 3 2 0 -1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 35 the directions are: 3 1 3 Step Direction D1 D2 1 3 0 -1 2 1 -1 -1 3 3 -1 -2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 36 the directions are: 3 1 4 Step Direction D1 D2 1 3 0 -1 2 1 -1 -1 3 4 -1 0 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 37 the directions are: 3 2 1 Step Direction D1 D2 1 3 0 -1 2 2 1 -1 3 1 0 -1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 38 the directions are: 3 2 2 Step Direction D1 D2 1 3 0 -1 2 2 1 -1 3 2 2 -1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 39 the directions are: 3 2 3 Step Direction D1 D2 1 3 0 -1 2 2 1 -1 3 3 1 -2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 40 the directions are: 3 2 4 Step Direction D1 D2 1 3 0 -1 2 2 1 -1 3 4 1 0 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 41 the directions are: 3 3 1 Step Direction D1 D2 1 3 0 -1 2 3 0 -2 3 1 -1 -2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 42 the directions are: 3 3 2 Step Direction D1 D2 1 3 0 -1 2 3 0 -2 3 2 1 -2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 43 the directions are: 3 3 3 Step Direction D1 D2 1 3 0 -1 2 3 0 -2 3 3 0 -3 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 44 the directions are: 3 3 4 Step Direction D1 D2 1 3 0 -1 2 3 0 -2 3 4 0 -1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 45 the directions are: 3 4 1 Step Direction D1 D2 1 3 0 -1 2 4 0 0 3 1 -1 0 Coordinates stepped on are: 1-1-1 for iteration 46 the directions are: 3 4 2 Step Direction D1 D2 1 3 0 -1 2 4 0 0 3 2 1 0 Coordinates stepped on are: 1-1-1 for iteration 47 the directions are: 3 4 3 Step Direction D1 D2 1 3 0 -1 2 4 0 0 3 3 0 -1 Coordinates stepped on are: 1-1-2 for iteration 48 the directions are: 3 4 4 Step Direction D1 D2 1 3 0 -1 2 4 0 0 3 4 0 1 Coordinates stepped on are: 1-1-1 for iteration 49 the directions are: 4 1 1 Step Direction D1 D2 1 4 0 1 2 1 -1 1 3 1 -2 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 50 the directions are: 4 1 2 Step Direction D1 D2 1 4 0 1 2 1 -1 1 3 2 0 1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 51 the directions are: 4 1 3 Step Direction D1 D2 1 4 0 1 2 1 -1 1 3 3 -1 0 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 52 the directions are: 4 1 4 Step Direction D1 D2 1 4 0 1 2 1 -1 1 3 4 -1 2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 53 the directions are: 4 2 1 Step Direction D1 D2 1 4 0 1 2 2 1 1 3 1 0 1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 54 the directions are: 4 2 2 Step Direction D1 D2 1 4 0 1 2 2 1 1 3 2 2 1 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 55 the directions are: 4 2 3 Step Direction D1 D2 1 4 0 1 2 2 1 1 3 3 1 0 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 56 the directions are: 4 2 4 Step Direction D1 D2 1 4 0 1 2 2 1 1 3 4 1 2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 57 the directions are: 4 3 1 Step Direction D1 D2 1 4 0 1 2 3 0 0 3 1 -1 0 Coordinates stepped on are: 1-1-1 for iteration 58 the directions are: 4 3 2 Step Direction D1 D2 1 4 0 1 2 3 0 0 3 2 1 0 Coordinates stepped on are: 1-1-1 for iteration 59 the directions are: 4 3 3 Step Direction D1 D2 1 4 0 1 2 3 0 0 3 3 0 -1 Coordinates stepped on are: 1-1-1 for iteration 60 the directions are: 4 3 4 Step Direction D1 D2 1 4 0 1 2 3 0 0 3 4 0 1 Coordinates stepped on are: 1-1-2 for iteration 61 the directions are: 4 4 1 Step Direction D1 D2 1 4 0 1 2 4 0 2 3 1 -1 2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 62 the directions are: 4 4 2 Step Direction D1 D2 1 4 0 1 2 4 0 2 3 2 1 2 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 63 the directions are: 4 4 3 Step Direction D1 D2 1 4 0 1 2 4 0 2 3 3 0 1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 64 the directions are: 4 4 4 Step Direction D1 D2 1 4 0 1 2 4 0 2 3 4 0 3 Coordinates stepped on are: 1-1-1 Never returned to orgin Frequency Stepped Ons 48 1-1-1 16 1-1-2 64 Total Routes 16 Returned to orgin which is 25% Frequency Coordinate 25 (1,0) 25 (0,1) 25 (0,-1) 25 (-1,0) 16 (0,0) 8 (1,-1) 8 (-1,1) 8 (-1,-1) 8 (1,1) 4 (-2,0) 4 (0,2) 4 (2,0) 4 (0,-2) 3 (-2,-1) 3 (-2,1) 3 (1,-2) 3 (1,2) 3 (-1,-2) 3 (2,-1) 3 (-1,2) 3 (2,1) 1 (3,0) 1 (-3,0) 1 (0,-3) 1 (0,3) Direction Frequency 1 48 2 48 3 48 4 48 Distance Frequency Cumulative 0 16 1 116 50% 2 164 3 192 100% For Random Walk of 2 dimensions and 3 steps, distance at which N percent of coordinates are contained 1 10% 1 50% 3 90% 3 100% Timing Data dumped at 2015_10_06_17:30:46.816 000_start : 0.000 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 101_end_of_program : 0.003 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU) 999_end : 0.003 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)