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:
Below is some sample image (modern art) generated: