Added randoms using C++ templates. Might be able to change the profiler class to a template template without the need of the config file.