This pen uses JavaScript to draw random spots by setting the "d" attribute of the SVG path element to a set of random points, switching the M and L options to create space between the lines.
It also engages the SVG circle element, animating created circles to move to random positions, grow and shrink repeatedly, and eventually disappear after ten seconds.
Would be great if you'd explain your code, so that we can better learn from it. I like the result but I wouldn't be able to use it in one of my projects without understanding what's going on. Or maybe I am too lazy to get into your code without any jumpstart :)