Rendering Clouds/Plasma?

Is there anyone who know something about rendering plasma patterns
(something like the Photoshop effects, "Clouds' or "Difference clouds").
When the patterns reaches the borders they should go back in on the other
side, so the image can be tiled. ???

    Michael.