Random template implementations, including template metaprogramming