This project solves the problem of the number of ways to fit a N * M domino in a W * H grid.
The problem was posted here: https://brilliant.org/problems/domino-tiling-3/#!/solution-comments/173083/
You can use this project to generate a random texture (PNG) if you specify a custum image for the domino.