Updated random number generator to speed up startup