Here is a little Diffusion Limited
Aggregation program.
What it does:
- seed the bottom row
with dots
- then make a dot randomly
placed above everything
- let the dot do a little
brownian random "dance"
- if it ends up next to any
other dots, make it stick there
- go to step 2 unless above
the maximum height of the applet
Here is the source if you feel like reading it.