Random Walk Simulator

In the algorithm class I take, we came across to this random walk problem.

In the one-dimensional version of this problem, you have an equal possibility to move left or right (by the same distance). Let’s say, after 25,000 moves, where do you expect your self to be?

This problem can be easily extended to two or even more dimension, which I’ll not elaborate on.

So I’ve created this simple to use random walk generator in java. If you have the interest, please try it out. It is pretty fun, and it can even be somehow artistic.

You can download the source code from here:

https://github.com/thethirduniverse/Random-Walk-Simulator.git

Below is some sample image (modern art) generated:

2527500-22:42:47 390000-22:39:55 363000-22:39:15