New solution, names changed
randomness checker, typedefs, vectors of vectors
Modularised (tools.h)