./random-walk.pl -benchmark -dimensions=1 -steps=3 -iterate -show_all Starting Random Walk at 2015_10_06_17:30:46.637 Parameters are 1 dimensions (which has 2 directions) and 3 steps ... Running 8 iterations - this can take a while ... for iteration 1 the directions are: 1 1 1 Step Direction D1 1 1 -1 2 1 -2 3 1 -3 Coordinates stepped on are: 1-1-1 Never returned to orgin for iteration 2 the directions are: 1 1 2 Step Direction D1 1 1 -1 2 1 -2 3 2 -1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 3 the directions are: 1 2 1 Step Direction D1 1 1 -1 2 2 0 3 1 -1 Coordinates stepped on are: 1-1-2 for iteration 4 the directions are: 1 2 2 Step Direction D1 1 1 -1 2 2 0 3 2 1 Coordinates stepped on are: 1-1-1 for iteration 5 the directions are: 2 1 1 Step Direction D1 1 2 1 2 1 0 3 1 -1 Coordinates stepped on are: 1-1-1 for iteration 6 the directions are: 2 1 2 Step Direction D1 1 2 1 2 1 0 3 2 1 Coordinates stepped on are: 1-1-2 for iteration 7 the directions are: 2 2 1 Step Direction D1 1 2 1 2 2 2 3 1 1 Coordinates stepped on are: 1-1-2 Never returned to orgin for iteration 8 the directions are: 2 2 2 Step Direction D1 1 2 1 2 2 2 3 2 3 Coordinates stepped on are: 1-1-1 Never returned to orgin Frequency Stepped Ons 4 1-1-2 4 1-1-1 8 Total Routes 4 Returned to orgin which is 50% Frequency Coordinate 7 (1) 7 (-1) 4 (0) 2 (2) 2 (-2) 1 (3) 1 (-3) Direction Frequency 1 12 2 12 Distance Frequency Cumulative 0 4 10% 1 18 50% 2 22 90% 3 24 100% For Random Walk of 1 dimensions and 3 steps, distance at which N percent of coordinates are contained 0 10% 1 50% 2 90% 3 100% Timing Data dumped at 2015_10_06_17:30:46.638 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)