A wooden brain-teaser: within a tower, four dice are inserted. They bear one of four colors on each side. The dice can be rotated in any direction. The objective is have each side of the column showing four different colors. Because I couldn't do it in my head, I wrote a JavaScript solver. Optimizing the first naive version was fun.

                      

auto

Batch roll time: ns.

Draw time: ns.