Factored 'random' out of 'distrib.' Moved tmath into lib. Wrote (untested) TraceMHKernel.