This sample file shows how you can make patterns with randomized elements that can still be made to tile seamlessly using the automatic Repeat Seamless node.
In addition to this it also includes an example of using a linked instance layer to create an offset copy of the ants with a modified fill color to use as shadows.

