Moved the random number generating routines to the statistics macro in order to preserve the use of the problem's seed.