Changed the random number generation to use CLHEP, the object creation causing the slowness is now removed.