How to duplicate parts like Archimedes

I need a generator that can generate a random swirl like Archimedes does.
image
What calculations do i need for this?