public class RandomWalk { public static void main(String[] args) { int N = Integer.parseInt(args[0]); int reps = Integer.parseInt(args[1]); // define variables needed to keep track // of the experiment // repeat experiment reps times for (int i = 0; i < reps; i++) { // simulate one random walk starting at (0,0) // until you hit the boundary } // summarize the experiments // and print out the final results } }